diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-03-04 15:13:41 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-03-21 15:46:48 -0300 |
commit | 1894e219dc530d7074085e95ffe3c1e66cebc072 (patch) | |
tree | 38f725283bca1b4e545d25f0fbff8308e737979b /sysdeps/mach/hurd/sysconf.c | |
parent | 855561a1fbc601aa6c373c8a036d472cb52786e7 (diff) | |
download | glibc-1894e219dc530d7074085e95ffe3c1e66cebc072.zip glibc-1894e219dc530d7074085e95ffe3c1e66cebc072.tar.gz glibc-1894e219dc530d7074085e95ffe3c1e66cebc072.tar.bz2 |
Remove eloop-threshold.h
On both Linux and Hurd the __eloop_threshold() is always a constant
(40 and 32 respectively), so there is no need to always call
__sysconf (_SC_SYMLOOP_MAX) for Linux case (!SYMLOOP_MAX). To avoid
a name clash with gnulib, rename the new file min-eloop-threshold.h.
Checked on x86_64-linux-gnu and with a build for x86_64-gnu.
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/mach/hurd/sysconf.c')
-rw-r--r-- | sysdeps/mach/hurd/sysconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/sysconf.c b/sysdeps/mach/hurd/sysconf.c index cb4899a..bf61090 100644 --- a/sysdeps/mach/hurd/sysconf.c +++ b/sysdeps/mach/hurd/sysconf.c @@ -19,8 +19,8 @@ #include <limits.h> #include <unistd.h> -#include <eloop-threshold.h> +#include <min-eloop-threshold.h> -#define SYMLOOP_MAX (__eloop_threshold ()) +#define SYMLOOP_MAX MIN_ELOOP_THRESHOLD #include <sysdeps/posix/sysconf.c> |