From 5568aa7cd5a64894bf881a8b64b582e59d16f1f5 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 24 Aug 2012 15:13:17 +0200 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ lib/buffer.c | 1 + lib/fuse.c | 1 + lib/fuse_lowlevel.c | 1 + 4 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6631784..4b43f41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-08-23 Miklos Szeredi + + * Fix missing config.h in buffer.c. Reported by Matthew Gabeler-Lee + 2012-08-14 Miklos Szeredi * 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 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" -- 2.30.2