diff --git a/fceux-server/server.cpp b/fceux-server/server.cpp index 1cdfa5de..9f5f2a64 100644 --- a/fceux-server/server.cpp +++ b/fceux-server/server.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -49,7 +50,7 @@ #define DEFAULT_CONFIG "/etc/fceu-server.conf" // MSG_NOSIGNAL and SOL_TCP have been depreciated on osx -#ifdef __APPLE__ +#if defined (__APPLE__) || defined(BSD) #define MSG_NOSIGNAL SO_NOSIGPIPE #define SOL_TCP IPPROTO_TCP #endif