aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2018-07-19 14:21:05 -0400
committerLawrence Nahum <lawrence@greenaddress.it>2018-09-01 15:25:03 +0200
commit9256f7d13f5b68ebc2981e8f45777f4bdc43f1b3 (patch)
treee38a99ab0f436e22098f6890ba4624541af6fd96 /configure.ac
parent2070a545e2c4e8c2dff4c0fb40b8fd2f68fc2cad (diff)
build: avoid getifaddrs when unavailable
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4275796b50..bbf5f642a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -727,6 +727,10 @@ fi
AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h])
+AC_CHECK_DECLS([getifaddrs, freeifaddrs],,,
+ [#include <sys/types.h>
+ #include <ifaddrs.h>]
+)
AC_CHECK_DECLS([strnlen])
# Check for daemon(3), unrelated to --with-daemon (although used by it)