From 210b653ff4043a27992389e765a2c3a79938a542 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 11 Feb 2016 15:28:09 +0100 Subject: compile dnbd3-fuse on FreeBSD without warning :) --- src/fuse/helper.h | 1 + src/fuse/main.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fuse') 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 #include #include +#include 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 ); } -- cgit v1.2.3-55-g7522