Merge branch 'wip/lantw/check-getauxval-for-freebsd-12' into 'master'

gutils: Check whether getauxval function exists

See merge request GNOME/glib!423
This commit is contained in:
Philip Withnall 2018-10-29 15:59:09 +00:00
commit 89ee8bfdee
3 changed files with 3 additions and 1 deletions

View File

@ -862,6 +862,7 @@ AC_CHECK_FUNCS(getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat fa
case $host_os in aix*) ac_cv_func_splice=no ;; esac # AIX splice() is something else case $host_os in aix*) ac_cv_func_splice=no ;; esac # AIX splice() is something else
AC_CHECK_FUNCS(splice) AC_CHECK_FUNCS(splice)
AC_CHECK_FUNCS(prlimit) AC_CHECK_FUNCS(prlimit)
AC_CHECK_FUNCS(getauxval)
# To avoid finding a compatibility unusable statfs, which typically # To avoid finding a compatibility unusable statfs, which typically
# successfully compiles, but warns to use the newer statvfs interface: # successfully compiles, but warns to use the newer statvfs interface:

View File

@ -2503,7 +2503,7 @@ const gchar *g_get_tmp_dir_utf8 (void) { return g_get_tmp_dir (); }
gboolean gboolean
g_check_setuid (void) g_check_setuid (void)
{ {
#if defined(HAVE_SYS_AUXV_H) #if defined(HAVE_SYS_AUXV_H) && defined(HAVE_GETAUXVAL) && defined(AT_SECURE)
unsigned long value; unsigned long value;
int errsv; int errsv;

View File

@ -397,6 +397,7 @@ functions = [
'fchown', 'fchown',
'fdwalk', 'fdwalk',
'fsync', 'fsync',
'getauxval',
'getc_unlocked', 'getc_unlocked',
'getfsstat', 'getfsstat',
'getgrgid_r', 'getgrgid_r',