From cb70b78c443de5f8b95c4469dd8eb7f77af880ed Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 26 Jun 2021 00:20:17 +0200 Subject: build: Fix compilation with fuse (RIB) on FreeBSD Compilation failed on FreeBSD 14 with fuse enabled because of some missing definitions. __XSI_VISIBLE must be set before including for some definitions in . FreeBSD doesn't know the MSG_CONFIRM flag to sendto() or CLOCK_REALTIME_COARSE, which are Linux-specific. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/fa.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ipcpd/unicast/fa.c') diff --git a/src/ipcpd/unicast/fa.c b/src/ipcpd/unicast/fa.c index 71351d5a..14303a21 100644 --- a/src/ipcpd/unicast/fa.c +++ b/src/ipcpd/unicast/fa.c @@ -24,6 +24,7 @@ #define _DEFAULT_SOURCE #else #define _POSIX_C_SOURCE 200112L +#define __XSI_VISIBLE 500 #endif #include "config.h" @@ -51,6 +52,10 @@ #include #include +#if defined (IPCP_FLOW_STATS) && !defined(CLOCK_REALTIME_COARSE) +#define CLOCK_REALTIME_COARSE CLOCK_REALTIME +#endif + #define TIMEOUT 10000 /* nanoseconds */ #define FLOW_REQ 0 -- cgit v1.2.3