summaryrefslogtreecommitdiffstats
path: root/src/fuse
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuse')
-rw-r--r--src/fuse/CMakeLists.txt2
-rw-r--r--src/fuse/connection.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/fuse/CMakeLists.txt b/src/fuse/CMakeLists.txt
index 367356a..1c107ed 100644
--- a/src/fuse/CMakeLists.txt
+++ b/src/fuse/CMakeLists.txt
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.10)
project(dnbd3-fuse)
# add compile option to enable enhanced POSIX pthread features
-add_compile_options(-D_GNU_SOURCE)
+add_definitions(-D_GNU_SOURCE)
add_executable(dnbd3-fuse ${CMAKE_CURRENT_SOURCE_DIR}/connection.c
${CMAKE_CURRENT_SOURCE_DIR}/helper.c
diff --git a/src/fuse/connection.h b/src/fuse/connection.h
index dde6da9..b869ac6 100644
--- a/src/fuse/connection.h
+++ b/src/fuse/connection.h
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
+#include <sys/socket.h>
#define FUSE_USE_VERSION 30
#include <fuse_lowlevel.h>