diff options
author | Manuel Bentele | 2020-10-19 14:35:01 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-10-19 14:44:05 +0200 |
commit | f617270a773669885f263e394f8a10553e110e28 (patch) | |
tree | e2b8effab564350324aeebb5fcec3b9f1ba304af /src/client | |
parent | [BUILD] rewrite CMake build system to track changes of source files (diff) | |
download | dnbd3-f617270a773669885f263e394f8a10553e110e28.tar.gz dnbd3-f617270a773669885f263e394f8a10553e110e28.tar.xz dnbd3-f617270a773669885f263e394f8a10553e110e28.zip |
[BUILD] fixes issues to build user space programs on FreeBSD 12.1
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/client/client.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index a7c1eb4..4cc1212 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -7,7 +7,7 @@ project(dnbd3-client) add_compile_options(-Wno-multichar) # add compile option to enable enhanced BSD netdb features -add_compile_options(-D_GNU_SOURCE) +add_definitions(-D_GNU_SOURCE) add_executable(dnbd3-client ${CMAKE_CURRENT_SOURCE_DIR}/client.c) target_link_libraries(dnbd3-client dnbd3-version dnbd3-shared) diff --git a/src/client/client.c b/src/client/client.c index 33737fa..e433160 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -33,6 +33,7 @@ #include <arpa/inet.h> #include <string.h> #include <sys/stat.h> +#include <sys/socket.h> #include <sys/un.h> #include <errno.h> |