diff options
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> |