aboutsummaryrefslogtreecommitdiff
path: root/lib/buffer.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2012-08-24 15:13:17 +0200
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2012-08-24 15:18:19 +0200
commit5568aa7cd5a64894bf881a8b64b582e59d16f1f5 (patch)
tree0079b46b24cb210a20bf7cf81d1d9b74198e4c02 /lib/buffer.c
parentfdff523325bf49dc1cb9b62787dcf4ae22898d0f (diff)
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
Diffstat (limited to 'lib/buffer.c')
-rw-r--r--lib/buffer.c1
1 files changed, 1 insertions, 0 deletions
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>