summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-04-27 03:46:10 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-04-27 03:46:10 +0200
commitba0cb3fe960d8653cbbc2358f4e392417af4d98a (patch)
tree46b09279e6987c79a0e6861142cafcaacd1ec9e5 /configure.ac
parentlib: Fix some *bsd build issues introduced by EIGRP code (diff)
downloadfrr-ba0cb3fe960d8653cbbc2358f4e392417af4d98a.tar.xz
frr-ba0cb3fe960d8653cbbc2358f4e392417af4d98a.zip
lib: Fix compilation of some be32* code
The be32dec and be32enc functions are available on some platforms and not others. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f586e560e..4f0dcdf85 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1603,6 +1603,12 @@ AC_TRY_COMPILE([#include <netinet/in.h>], [
])
dnl --------------------------------------
+dnl checking for be32dec existence or not
+dnl --------------------------------------
+AC_CHECK_DECLS([be32enc, be32dec], [], [],
+ [#include <sys/endian.h>])
+
+dnl --------------------------------------
dnl checking for clock_time monotonic struct and call
dnl --------------------------------------
AC_CHECK_DECL(CLOCK_MONOTONIC,