]> Git Repo - qemu.git/commitdiff
virtiofsd: Fix common header and define for QEMU builds
authorDr. David Alan Gilbert <[email protected]>
Fri, 8 Feb 2019 11:48:42 +0000 (11:48 +0000)
committerDr. David Alan Gilbert <[email protected]>
Thu, 23 Jan 2020 16:41:36 +0000 (16:41 +0000)
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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
tools/virtiofsd/buffer.c
tools/virtiofsd/fuse_i.h
tools/virtiofsd/fuse_log.c
tools/virtiofsd/fuse_lowlevel.c
tools/virtiofsd/fuse_opt.c
tools/virtiofsd/fuse_signals.c
tools/virtiofsd/helper.c
tools/virtiofsd/passthrough_ll.c

index 4d507f3302b79abcbbfcf8e5ece191b8f4d33b60..772efa922dcb2fa5a0a4fe58a5306ead59754ef7 100644 (file)
@@ -9,9 +9,7 @@
  * See the file COPYING.LIB
  */
 
-#define _GNU_SOURCE
-
-#include "config.h"
+#include "qemu/osdep.h"
 #include "fuse_i.h"
 #include "fuse_lowlevel.h"
 #include <assert.h>
index e63cb5838873284a5a6d39f238113fd96bf4093d..bae06992e06d83d12b725dcbbc1e7c8604bbfc1a 100644 (file)
@@ -6,6 +6,9 @@
  * See the file COPYING.LIB
  */
 
+#define FUSE_USE_VERSION 31
+
+
 #include "fuse.h"
 #include "fuse_lowlevel.h"
 
index 11345f9ec83d58973a8bb2ec10aadbe6eac49895..c301ff6da14526fb8f229aba76295512825fea33 100644 (file)
@@ -8,6 +8,7 @@
  * See the file COPYING.LIB
  */
 
+#include "qemu/osdep.h"
 #include "fuse_log.h"
 
 #include <stdarg.h>
index 3da80de233cb86b5c7097641828a3e4cc5904e15..07fb8a6095fb63e51aa9155710424df9b0316ce4 100644 (file)
@@ -9,11 +9,9 @@
  * See the file COPYING.LIB
  */
 
-#define _GNU_SOURCE
-
-#include "config.h"
+#include "qemu/osdep.h"
 #include "fuse_i.h"
-#include "fuse_kernel.h"
+#include "standard-headers/linux/fuse.h"
 #include "fuse_misc.h"
 #include "fuse_opt.h"
 
index edd36f4a3b5d7b1b95e99bf177a3e8fb65561223..28922361a26f6fa0da304fd1869b26791d879322 100644 (file)
@@ -9,8 +9,8 @@
  * See the file COPYING.LIB
  */
 
+#include "qemu/osdep.h"
 #include "fuse_opt.h"
-#include "config.h"
 #include "fuse_i.h"
 #include "fuse_misc.h"
 
index 19d6791cb91c3f1b19b11f461ba45dbf8168016f..dc7c8ac025bc6358947be4fdec2a40fc4ce752f3 100644 (file)
@@ -8,7 +8,7 @@
  * See the file COPYING.LIB
  */
 
-#include "config.h"
+#include "qemu/osdep.h"
 #include "fuse_i.h"
 #include "fuse_lowlevel.h"
 
index d9227d736755133b253157a1f4f9d3f5de8ddd99..93336915252efe2a28530a6638620196339fc6f0 100644 (file)
@@ -10,6 +10,7 @@
  * See the file COPYING.LIB.
  */
 
+#include "qemu/osdep.h"
 #include "fuse_i.h"
 #include "fuse_lowlevel.h"
 #include "fuse_misc.h"
index 126a56ccbd4f9bd287baf98e6239d78244150205..322a889cdfae9800affc3a80a082bbbdf583fcea 100644 (file)
  * \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>
This page took 0.039582 seconds and 4 git commands to generate.