diff options
author | Matthew Waters <matthew@centricular.com> | 2018-02-14 23:22:16 +1100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-10-21 04:50:13 -0400 |
commit | c35a64ba13096476e52407e307825ec5688afede (patch) | |
tree | 7c9aa5491a0fcb9f8e5a565b6d3e0deb400efdcd /configure.ac | |
parent | ad884734db2b8ef19b4b42411372ddca2a916c9d (diff) | |
download | libnice-c35a64ba13096476e52407e307825ec5688afede.tar.gz |
Fix build with android NDK r16
getifaddrs() may only be available if the target API is >= 24
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
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 |