From a3fe0a3a253c340291f8060a6b96ae053a931f6f Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 7 Jan 2017 15:31:23 -0800 Subject: [PATCH] Fix compiling on linux --- CMakeLists.txt | 2 ++ include/jbus/Endpoint.hpp | 1 + include/jbus/Socket.hpp | 1 + 3 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eab0798..ff9290e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ project(jbus) if(WIN32) set(JBUS_PLAT_LIBS Ws2_32) +elseif(UNIX AND NOT APPLE) +set(JBUS_PLAT_LIBS pthread) endif() include_directories(include) diff --git a/include/jbus/Endpoint.hpp b/include/jbus/Endpoint.hpp index e1d2031..db37c4c 100644 --- a/include/jbus/Endpoint.hpp +++ b/include/jbus/Endpoint.hpp @@ -6,6 +6,7 @@ #include "optional.hpp" #include #include +#include namespace jbus { diff --git a/include/jbus/Socket.hpp b/include/jbus/Socket.hpp index 884c2bc..6bfe237 100644 --- a/include/jbus/Socket.hpp +++ b/include/jbus/Socket.hpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "Common.hpp"