aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-08-24 15:13:17 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2012-08-24 15:18:19 +0200
commit5568aa7cd5a64894bf881a8b64b582e59d16f1f5 (patch)
tree0079b46b24cb210a20bf7cf81d1d9b74198e4c02
parentfdff523325bf49dc1cb9b62787dcf4ae22898d0f (diff)
downloadandroid_external_fuse-5568aa7cd5a64894bf881a8b64b582e59d16f1f5.tar.gz
android_external_fuse-5568aa7cd5a64894bf881a8b64b582e59d16f1f5.tar.bz2
android_external_fuse-5568aa7cd5a64894bf881a8b64b582e59d16f1f5.zip
Fix missing config.h in buffer.c
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
-rw-r--r--ChangeLog4
-rw-r--r--lib/buffer.c1
-rw-r--r--lib/fuse.c1
-rw-r--r--lib/fuse_lowlevel.c1
4 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6631784..4b43f41 100644
--- 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
diff --git a/lib/buffer.c b/lib/buffer.c
index 65b0dea..17a595c 100644
--- a/lib/buffer.c
+++ b/lib/buffer.c
@@ -8,6 +8,7 @@
#define _GNU_SOURCE
+#include "config.h"
#include "fuse_i.h"
#include "fuse_lowlevel.h"
#include <string.h>
diff --git a/lib/fuse.c b/lib/fuse.c
index 49d69db..2907cfe 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -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"
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index a259f37..01efc6a 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -8,6 +8,7 @@
#define _GNU_SOURCE
+#include "config.h"
#include "fuse_i.h"
#include "fuse_kernel.h"
#include "fuse_opt.h"