summaryrefslogtreecommitdiffstats
path: root/src/fuse
diff options
context:
space:
mode:
authorSebastian2016-02-11 15:28:09 +0100
committerSebastian2016-02-11 15:28:09 +0100
commit210b653ff4043a27992389e765a2c3a79938a542 (patch)
treec66df7a398622537ba5d376a4d512808b71701a1 /src/fuse
parentremove kernel build breaking include (diff)
downloaddnbd3-210b653ff4043a27992389e765a2c3a79938a542.tar.gz
dnbd3-210b653ff4043a27992389e765a2c3a79938a542.tar.xz
dnbd3-210b653ff4043a27992389e765a2c3a79938a542.zip
compile dnbd3-fuse on FreeBSD without warning :)
Diffstat (limited to 'src/fuse')
-rw-r--r--src/fuse/helper.h1
-rw-r--r--src/fuse/main.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/src/fuse/helper.h b/src/fuse/helper.h
index 94218a9..8c290cc 100644
--- a/src/fuse/helper.h
+++ b/src/fuse/helper.h
@@ -7,6 +7,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
+#include <sys/socket.h>
typedef struct log_info {
uint64_t imageSize;
diff --git a/src/fuse/main.c b/src/fuse/main.c
index 2c349c8..1759c06 100644
--- a/src/fuse/main.c
+++ b/src/fuse/main.c
@@ -38,6 +38,7 @@ static uid_t owner;
static bool keepRunning = true;
static void (*fuse_sigIntHandler)(int) = NULL;
static void (*fuse_sigTermHandler)(int) = NULL;
+static struct fuse_operations dnbd3_fuse_no_operations;
static int image_getattr(const char *path, struct stat *stbuf)
@@ -211,7 +212,7 @@ static void printVersion()
{
char *arg[] = { "foo", "-V" };
printf( "DNBD3-Fuse Version 1.2.3.4, protocol version %d\n", (int)PROTOCOL_VERSION );
- fuse_main( 2, arg, NULL, NULL );
+ fuse_main( 2, arg, &dnbd3_fuse_no_operations, NULL );
exit( 0 );
}
@@ -226,7 +227,7 @@ static void printUsage(char *argv0, int exitCode)
printf( " -l --log Write log to given location\n" );
printf( " -o --option Mount options to pass to libfuse\n" );
printf( " -d --debug Don't fork and print debug output (fuse > stderr, dnbd3 > stdout)\n" );
- fuse_main( 2, arg, NULL, NULL );
+ fuse_main( 2, arg, &dnbd3_fuse_no_operations, NULL );
exit( exitCode );
}