Index: auto.def ================================================================== --- auto.def +++ auto.def @@ -479,10 +479,11 @@ cc-check-function-in-lib sin m # Check for the FuseFS library if {[opt-bool fusefs]} { if {[cc-check-function-in-lib fuse_mount fuse]} { + define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS define FOSSIL_HAVE_FUSEFS 1 define-append LIBS -lfuse msg-result "FuseFS support enabled" } } Index: src/fusefs.c ================================================================== --- src/fusefs.c +++ src/fusefs.c @@ -20,12 +20,12 @@ ** ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for ** the Fuse Filesystem, of course. */ -#include "config.h" #ifdef FOSSIL_HAVE_FUSEFS +#include "config.h" #include #include #include #include #include