mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 16:36:14 +01:00
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:
commit
89ee8bfdee
@ -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
|
||||
AC_CHECK_FUNCS(splice)
|
||||
AC_CHECK_FUNCS(prlimit)
|
||||
AC_CHECK_FUNCS(getauxval)
|
||||
|
||||
# To avoid finding a compatibility unusable statfs, which typically
|
||||
# successfully compiles, but warns to use the newer statvfs interface:
|
||||
|
@ -2503,7 +2503,7 @@ const gchar *g_get_tmp_dir_utf8 (void) { return g_get_tmp_dir (); }
|
||||
gboolean
|
||||
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;
|
||||
int errsv;
|
||||
|
||||
|
@ -397,6 +397,7 @@ functions = [
|
||||
'fchown',
|
||||
'fdwalk',
|
||||
'fsync',
|
||||
'getauxval',
|
||||
'getc_unlocked',
|
||||
'getfsstat',
|
||||
'getgrgid_r',
|
||||
|
Loading…
Reference in New Issue
Block a user