Fix missing config.h in buffer.c
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 24 Aug 2012 13:13:17 +0000 (15:13 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 24 Aug 2012 13:18:19 +0000 (15:18 +0200)
Due to an oversight, splice will never actually be used for i/o.  Someone forgot
to #include "config.h" in lib/buffer.c (in fact almost no files include that
header).  As a result, even though configure detects splice support and puts
HAVE_SPLICE in config.h, buffer.c is always compiled as if there is no splice
support.

Also add #include "config.h" to fuse.c and fuse_lowlevel.c.  These currently
include it indirectly through fuse_misc.h, but we don't want to depend on that.

Reported by Matthew Gabeler-Lee

ChangeLog
lib/buffer.c
lib/fuse.c
lib/fuse_lowlevel.c

index 66317845c9d6f5098f5e9446ca65d472a774e2a7..4b43f4132bd6161fb5d0c3f0c46cb51b5a707b22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-23  Miklos Szeredi <miklos@szeredi.hu>
+
+       * Fix missing config.h in buffer.c.  Reported by Matthew Gabeler-Lee
+
 2012-08-14  Miklos Szeredi <miklos@szeredi.hu>
 
        * Not unhashing the name in forget (commit on 2011-12-09) broke
index 65b0dea69f23405ebd52660a6fb462b5f8e8781a..17a595c2486eb6a77d97c4c5e0fd85d7f6892f82 100644 (file)
@@ -8,6 +8,7 @@
 
 #define _GNU_SOURCE
 
+#include "config.h"
 #include "fuse_i.h"
 #include "fuse_lowlevel.h"
 #include <string.h>
index 49d69dbf3b19cc8d883b573cc0f067ffac690bd9..2907cfea5b8742e190ab67bbff6f3fc54553a968 100644 (file)
@@ -10,6 +10,7 @@
 /* For pthread_rwlock_t */
 #define _GNU_SOURCE
 
+#include "config.h"
 #include "fuse_i.h"
 #include "fuse_lowlevel.h"
 #include "fuse_opt.h"
index a259f376c2731f7d109db619c24cd93ab375b4f6..01efc6ab1b8a798f30c2134a8b351d148fdd21e3 100644 (file)
@@ -8,6 +8,7 @@
 
 #define _GNU_SOURCE
 
+#include "config.h"
 #include "fuse_i.h"
 #include "fuse_kernel.h"
 #include "fuse_opt.h"