diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt index 9c3e655..6f6727d 100644 --- a/Sources/CMakeLists.txt +++ b/Sources/CMakeLists.txt @@ -8,7 +8,7 @@ project(SeriousEngine) find_package(SDL REQUIRED) # Set up some sanity stuff... -if(CMAKE_SYSTEM_NAME STREQUAL "Linux") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME MATCHES "GNU|kFreeBSD") SET(LINUX TRUE) endif() if(APPLE) diff --git a/Sources/Engine/Network/CommunicationInterface.cpp b/Sources/Engine/Network/CommunicationInterface.cpp index bb7b6e5..6f35a92 100644 --- a/Sources/Engine/Network/CommunicationInterface.cpp +++ b/Sources/Engine/Network/CommunicationInterface.cpp @@ -134,8 +134,10 @@ static struct ErrorCode ErrorCodes[] = { ERRORCODE(ENODEV , "ENODEV"), ERRORCODE(ECONNRESET , "ECONNRESET"), ERRORCODE(ENOTCONN , "ENOTCONN"), - #if !PLATFORM_MACOSX + #ifdef ENOSR ERRORCODE(ENOSR , "ENOSR"), + #endif + #ifdef ENOPKG ERRORCODE(ENOPKG , "ENOPKG"), #endif #endif