mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-15 16:56: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
|
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:
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -397,6 +397,7 @@ functions = [
|
|||||||
'fchown',
|
'fchown',
|
||||||
'fdwalk',
|
'fdwalk',
|
||||||
'fsync',
|
'fsync',
|
||||||
|
'getauxval',
|
||||||
'getc_unlocked',
|
'getc_unlocked',
|
||||||
'getfsstat',
|
'getfsstat',
|
||||||
'getgrgid_r',
|
'getgrgid_r',
|
||||||
|
Loading…
Reference in New Issue
Block a user