Fossil SCM
Alternative to check-in [a4bb89ba08], make FuseFS act just like the JSON feature in 'auto.def'.
Commit
6a80a2f2466dbd11df750437d26d08bde27dd78f
Parent
95d6ddc3a0a63d2…
2 files changed
+1
+1
-1
M
auto.def
+1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -479,10 +479,11 @@ | ||
| 479 | 479 | cc-check-function-in-lib sin m |
| 480 | 480 | |
| 481 | 481 | # Check for the FuseFS library |
| 482 | 482 | if {[opt-bool fusefs]} { |
| 483 | 483 | if {[cc-check-function-in-lib fuse_mount fuse]} { |
| 484 | + define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS | |
| 484 | 485 | define FOSSIL_HAVE_FUSEFS 1 |
| 485 | 486 | define-append LIBS -lfuse |
| 486 | 487 | msg-result "FuseFS support enabled" |
| 487 | 488 | } |
| 488 | 489 | } |
| 489 | 490 |
| --- 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 @@ | ||
| 20 | 20 | ** |
| 21 | 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | 23 | ** the Fuse Filesystem, of course. |
| 24 | 24 | */ |
| 25 | -#include "config.h" | |
| 26 | 25 | #ifdef FOSSIL_HAVE_FUSEFS |
| 26 | +#include "config.h" | |
| 27 | 27 | #include <stdio.h> |
| 28 | 28 | #include <string.h> |
| 29 | 29 | #include <errno.h> |
| 30 | 30 | #include <fcntl.h> |
| 31 | 31 | #include <stdlib.h> |
| 32 | 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 | #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 |