diff options
author | Dimitri Staessens <[email protected]> | 2021-06-26 00:20:17 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2021-06-28 15:29:16 +0200 |
commit | cb70b78c443de5f8b95c4469dd8eb7f77af880ed (patch) | |
tree | ae90c387087b5288fe4651db485c6cdd1ef80b7c /src/ipcpd/unicast/fa.c | |
parent | 2a46ecf6e64f1a725a3660ea03d6c9946e74de0f (diff) | |
download | ouroboros-cb70b78c443de5f8b95c4469dd8eb7f77af880ed.tar.gz ouroboros-cb70b78c443de5f8b95c4469dd8eb7f77af880ed.zip |
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
<ouroboros/rib.h> for some definitions in <sys/stat.h>. FreeBSD
doesn't know the MSG_CONFIRM flag to sendto() or
CLOCK_REALTIME_COARSE, which are Linux-specific.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/unicast/fa.c')
-rw-r--r-- | src/ipcpd/unicast/fa.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdlib.h> #include <string.h> +#if defined (IPCP_FLOW_STATS) && !defined(CLOCK_REALTIME_COARSE) +#define CLOCK_REALTIME_COARSE CLOCK_REALTIME +#endif + #define TIMEOUT 10000 /* nanoseconds */ #define FLOW_REQ 0 |