[vlc-devel] [PATCH 4/4] configure: remove freeaddrinfo test
KO Myung-Hun
komh78 at gmail.com
Wed Dec 3 03:47:03 CET 2014
From: Rémi Denis-Courmont <remi at remlab.net>
Assume that freeaddrinfo() is missing if and only if targetting OS/2.
That is not particularly clean but <vlc_network.h> already makes that
same assumption anyhow.
(cherry picked from commit 888bc8a5c9827a34598343e0a47896e5804ef3ff)
Signed-off-by: KO Myung-Hun <komh at chollian.net>
Conflicts:
configure.ac
---
configure.ac | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index b5f6a2c..fd4fecc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -293,6 +293,7 @@ case "${host_os}" in
*os2*)
SYS=os2
LDFLAGS="${LDFLAGS} -Zomf -Zbin-files -Zargs-wild -Zhigh-mem"
+ AC_LIBOBJ([freeaddrinfo])
;;
*)
SYS="${host_os}"
@@ -534,7 +535,7 @@ need_libc=false
dnl Check for usual libc functions
AC_CHECK_DECLS([nanosleep],,,[#include <time.h>])
AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r isatty lstat memalign mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale])
-AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile freeaddrinfo fsync getdelim getpid gmtime_r lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp])
+AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile fsync getdelim getpid gmtime_r lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp])
AC_CHECK_FUNCS(fdatasync,,
[AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
])
--
1.8.5.2
More information about the vlc-devel
mailing list