diff options
Diffstat (limited to 'src/lib/rib.c')
-rw-r--r-- | src/lib/rib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/rib.c b/src/lib/rib.c index d9f59a3e..0418252b 100644 --- a/src/lib/rib.c +++ b/src/lib/rib.c @@ -24,6 +24,10 @@ #include "config.h" +#if defined (__FreeBSD__) +#define __XSI_VISIBLE 500 +#endif + #include <ouroboros/errno.h> #include <ouroboros/list.h> #include <ouroboros/rib.h> @@ -41,9 +45,7 @@ #define FUSE_USE_VERSION 26 #if defined (__linux__) #define __USE_XOPEN -#elif defined (__FreeBSD__) -#define __XSI_VISIBLE 500 -#endif +#endif /* __linux__ */ #include <fuse.h> #ifndef CLOCK_REALTIME_COARSE @@ -266,7 +268,6 @@ static void * fuse_thr(void * o) } #endif /* HAVE_FUSE */ - int rib_init(const char * mountpt) { #ifdef HAVE_FUSE |