Fix compiling on linux

This commit is contained in:
Phillip Stephens 2017-01-07 15:31:23 -08:00
parent 42f1b86627
commit a3fe0a3a25
3 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -6,6 +6,7 @@
#include "optional.hpp"
#include <thread>
#include <mutex>
#include <condition_variable>
namespace jbus
{

View File

@ -17,6 +17,7 @@
#include <sys/types.h>
#include <fcntl.h>
#include <string>
#include <memory.h>
#include "Common.hpp"