Fossil SCM

Alternative to check-in [a4bb89ba08], make FuseFS act just like the JSON feature in 'auto.def'.

mistachkin 2016-10-28 04:27 trunk
Commit 6a80a2f2466dbd11df750437d26d08bde27dd78f
2 files changed +1 +1 -1
+1
--- auto.def
+++ auto.def
@@ -479,10 +479,11 @@
479479
cc-check-function-in-lib sin m
480480
481481
# Check for the FuseFS library
482482
if {[opt-bool fusefs]} {
483483
if {[cc-check-function-in-lib fuse_mount fuse]} {
484
+ define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
484485
define FOSSIL_HAVE_FUSEFS 1
485486
define-append LIBS -lfuse
486487
msg-result "FuseFS support enabled"
487488
}
488489
}
489490
--- auto.def
+++ auto.def
@@ -479,10 +479,11 @@
479 cc-check-function-in-lib sin m
480
481 # Check for the FuseFS library
482 if {[opt-bool fusefs]} {
483 if {[cc-check-function-in-lib fuse_mount fuse]} {
 
484 define FOSSIL_HAVE_FUSEFS 1
485 define-append LIBS -lfuse
486 msg-result "FuseFS support enabled"
487 }
488 }
489
--- auto.def
+++ auto.def
@@ -479,10 +479,11 @@
479 cc-check-function-in-lib sin m
480
481 # Check for the FuseFS library
482 if {[opt-bool fusefs]} {
483 if {[cc-check-function-in-lib fuse_mount fuse]} {
484 define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS
485 define FOSSIL_HAVE_FUSEFS 1
486 define-append LIBS -lfuse
487 msg-result "FuseFS support enabled"
488 }
489 }
490
+1 -1
--- src/fusefs.c
+++ src/fusefs.c
@@ -20,12 +20,12 @@
2020
**
2121
** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS.
2222
** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for
2323
** the Fuse Filesystem, of course.
2424
*/
25
-#include "config.h"
2625
#ifdef FOSSIL_HAVE_FUSEFS
26
+#include "config.h"
2727
#include <stdio.h>
2828
#include <string.h>
2929
#include <errno.h>
3030
#include <fcntl.h>
3131
#include <stdlib.h>
3232
--- src/fusefs.c
+++ src/fusefs.c
@@ -20,12 +20,12 @@
20 **
21 ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS.
22 ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for
23 ** the Fuse Filesystem, of course.
24 */
25 #include "config.h"
26 #ifdef FOSSIL_HAVE_FUSEFS
 
27 #include <stdio.h>
28 #include <string.h>
29 #include <errno.h>
30 #include <fcntl.h>
31 #include <stdlib.h>
32
--- src/fusefs.c
+++ src/fusefs.c
@@ -20,12 +20,12 @@
20 **
21 ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS.
22 ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for
23 ** the Fuse Filesystem, of course.
24 */
 
25 #ifdef FOSSIL_HAVE_FUSEFS
26 #include "config.h"
27 #include <stdio.h>
28 #include <string.h>
29 #include <errno.h>
30 #include <fcntl.h>
31 #include <stdlib.h>
32

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button