summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-02-14 23:22:16 +1100
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-10-21 04:50:13 -0400
commitc35a64ba13096476e52407e307825ec5688afede (patch)
tree7c9aa5491a0fcb9f8e5a565b6d3e0deb400efdcd
parentad884734db2b8ef19b4b42411372ddca2a916c9d (diff)
downloadlibnice-c35a64ba13096476e52407e307825ec5688afede.tar.gz
Fix build with android NDK r16
getifaddrs() may only be available if the target API is >= 24
-rw-r--r--configure.ac7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 3b98aee..ddcc4e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,9 +88,10 @@ AH_VERBATIM([_FORTIFY_SOURCE],
#endif])
AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation])
AC_CHECK_HEADERS([arpa/inet.h net/in.h netdb.h])
-AC_CHECK_HEADERS([ifaddrs.h], \
- [AC_DEFINE(HAVE_GETIFADDRS, [1], \
- [Whether getifaddrs() is available on the system])])
+AC_CHECK_HEADERS([ifaddrs.h],
+ [AC_CHECK_FUNCS([getifaddrs],
+ [AC_DEFINE(HAVE_GETIFADDRS, [1],
+ [Whether getifaddrs() is available on the system])])])
AC_CHECK_TYPES([size_t, ssize_t])
# Also put matching version in LIBNICE_CFLAGS