mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Merge pull request #192 from abenedic/master
Minor changes for Building on FreeBSD 12.1
This commit is contained in:
commit
27c46444db
@ -248,7 +248,11 @@ if(MSVC)
|
||||
elseif(APPLE)
|
||||
target_link_libraries(oatpp PUBLIC ${CMAKE_THREAD_LIBS_INIT})
|
||||
else(MSVC)
|
||||
target_link_libraries(oatpp PUBLIC ${CMAKE_THREAD_LIBS_INIT} atomic)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
target_link_libraries(oatpp PUBLIC ${CMAKE_THREAD_LIBS_INIT})
|
||||
else(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
target_link_libraries(oatpp PUBLIC ${CMAKE_THREAD_LIBS_INIT} atomic)
|
||||
endif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
endif(MSVC)
|
||||
|
||||
target_include_directories(oatpp PUBLIC
|
||||
|
@ -38,6 +38,9 @@
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <unistd.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace oatpp { namespace network { namespace server {
|
||||
|
Loading…
Reference in New Issue
Block a user