mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
autotools: Use AC_CHECK_DECL to check for getentropy
Should fix build issue on iOS.
This commit is contained in:
parent
ed8b4264f6
commit
6ae65368ad
@ -310,13 +310,17 @@ AC_CHECK_HEADERS([glob.h])
|
||||
AM_CONDITIONAL(WITH_GLOB, test "$ac_cv_header_glob_h" = "yes")
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_CHECK_FUNCS([getentropy gettimeofday ftime stat mmap munmap])
|
||||
AC_CHECK_FUNCS([gettimeofday ftime stat mmap munmap])
|
||||
|
||||
AH_VERBATIM([HAVE_MUNMAP_AFTER],[/* mmap() is no good without munmap() */
|
||||
#if defined(HAVE_MMAP) && !defined(HAVE_MUNMAP)
|
||||
# undef /**/ HAVE_MMAP
|
||||
#endif])
|
||||
|
||||
AC_CHECK_DECL([getentropy],
|
||||
[AC_DEFINE([HAVE_GETENTROPY], [1], [getentropy])], [],
|
||||
[#include <sys/random.h>])
|
||||
|
||||
dnl
|
||||
dnl Checks for inet libraries
|
||||
dnl
|
||||
|
Loading…
x
Reference in New Issue
Block a user