summaryrefslogtreecommitdiffstats
path: root/tools/virtiofsd/passthrough_ll.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2019-02-08 12:48:42 +0100
committerDr. David Alan Gilbert2020-01-23 17:41:36 +0100
commit09863ebc7e32a107235b3c815ad54d26cc64f07a (patch)
tree58834f4c9e17031c3f81ca2478a55125e901628d /tools/virtiofsd/passthrough_ll.c
parentvirtiofsd: Fix fuse_daemonize ignored return values (diff)
downloadqemu-09863ebc7e32a107235b3c815ad54d26cc64f07a.tar.gz
qemu-09863ebc7e32a107235b3c815ad54d26cc64f07a.tar.xz
qemu-09863ebc7e32a107235b3c815ad54d26cc64f07a.zip
virtiofsd: Fix common header and define for QEMU builds
All of the fuse files include config.h and define GNU_SOURCE where we don't have either under our build - remove them. Fixup path to the kernel's fuse.h in the QEMUs world. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools/virtiofsd/passthrough_ll.c')
-rw-r--r--tools/virtiofsd/passthrough_ll.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
index 126a56ccbd..322a889cdf 100644
--- a/tools/virtiofsd/passthrough_ll.c
+++ b/tools/virtiofsd/passthrough_ll.c
@@ -35,15 +35,11 @@
* \include passthrough_ll.c
*/
-#define _GNU_SOURCE
-#define FUSE_USE_VERSION 31
-
-#include "config.h"
-
+#include "qemu/osdep.h"
+#include "fuse_lowlevel.h"
#include <assert.h>
#include <dirent.h>
#include <errno.h>
-#include <fuse_lowlevel.h>
#include <inttypes.h>
#include <limits.h>
#include <pthread.h>