[vlc-commits] configure: reinstate proper test for tdestroy
Rémi Denis-Courmont
git at videolan.org
Sun Oct 23 19:10:46 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 23 20:09:13 2016 +0300| [4c430331e9572c50a1ad166667ddf4ee2732dd5f] | committer: Rémi Denis-Courmont
configure: reinstate proper test for tdestroy
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c430331e9572c50a1ad166667ddf4ee2732dd5f
---
configure.ac | 2 +-
src/extras/tdestroy.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 98c209d..ef32af8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -598,7 +598,7 @@ need_libc=false
dnl Check for usual libc functions
AC_CHECK_DECLS([nanosleep],,,[#include <time.h>])
-AC_CHECK_FUNCS([daemon fcntl flock fstatvfs fork getenv getpwuid_r isatty lstat memalign mkostemp mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale pthread_cond_timedwait_monotonic_np pthread_condattr_setclock])
+AC_CHECK_FUNCS([daemon fcntl flock fstatvfs fork getenv getpwuid_r isatty lstat memalign mkostemp mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime tdestroy uselocale pthread_cond_timedwait_monotonic_np pthread_condattr_setclock])
AC_REPLACE_FUNCS([atof atoll dirfd fdopendir ffsll flockfile fsync getdelim getpid lldiv memrchr nrand48 poll posix_memalign recvmsg rewind sendmsg setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strnstr strsep strtof strtok_r strtoll swab tfind timegm timespec_get strverscmp])
AC_REPLACE_FUNCS([gettimeofday])
AC_CHECK_FUNC(fdatasync,,
diff --git a/src/extras/tdestroy.c b/src/extras/tdestroy.c
index ea199b8..5c54881 100644
--- a/src/extras/tdestroy.c
+++ b/src/extras/tdestroy.c
@@ -24,7 +24,7 @@
# include "config.h"
#endif
-#if defined(HAVE_SEARCH_H) && !defined(HAVE_TDESTROY)
+#if defined(HAVE_SEARCH_H) && !defined(HAVE_TDESTROY) && defined(HAVE_TFIND)
#include <stdlib.h>
#include <assert.h>
More information about the vlc-commits
mailing list