From b7d8491becd281cddae94e0c7709fb7fa47133ec Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 23 Dec 2013 00:05:29 +0100 Subject: Fixing Linux build. --- src/Selectable.cc | 3 ++- src/Socket.cc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Selectable.cc b/src/Selectable.cc index 4213d34..de7d178 100644 --- a/src/Selectable.cc +++ b/src/Selectable.cc @@ -1,7 +1,8 @@ -#include #include #ifndef _MSC_VER #include +#else +#include #endif #ifdef _WIN32 #include diff --git a/src/Socket.cc b/src/Socket.cc index 66dae18..e1778be 100644 --- a/src/Socket.cc +++ b/src/Socket.cc @@ -528,7 +528,11 @@ Balau::IO Balau::Socket::accept() throw (GeneralException) { } else { Printer::elog(E_SOCKET, "Listener at %p got a new connection", this); m_evtR->reset(); +#ifdef _MSC_VER return IO(new Socket(_open_osfhandle(s, 0))); +#else + return IO(new Socket(s)); +#endif } } } -- cgit v1.2.3 From df8dd99434e5918a7506d888877d070356111d43 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 23 Dec 2013 00:29:24 +0100 Subject: Adding latest files to the Makefile. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 9dcb920..22935f0 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,10 @@ HelperTasks.cc \ Http.cc \ HttpServer.cc \ SimpleMustache.cc \ +BWebSocket.cc \ +\ +SHA1.cc \ +Base64.cc \ \ BLua.cc \ LuaBigInt.cc \ -- cgit v1.2.3