From 9dc54a34458922bddf766d2d2643bbb3dffe3282 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 15 Sep 2024 01:40:37 +0100 Subject: [PATCH] build: stop checking for __secure_getenv Currently we check for both __secure_getenv and secure_getenv. The former was introduced with glibc 2.2.5 as internal(?) API, while the has been part of glibc 2.17, circa 2012. Drop the former check. It may have been required over 10 years ago, but not any more. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/131 Signed-off-by: Lucas De Marchi --- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 15def643..c422cbb1 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ AC_PROG_CC_C99 ##################################################################### AC_CHECK_FUNCS_ONCE([open64 stat64 fopen64 __stat64_time64]) -AC_CHECK_FUNCS_ONCE([__secure_getenv secure_getenv]) +AC_CHECK_FUNCS_ONCE([secure_getenv]) CC_CHECK_FUNC_BUILTIN([__builtin_clz]) CC_CHECK_FUNC_BUILTIN([__builtin_types_compatible_p]) diff --git a/meson.build b/meson.build index 16ff67b9..b4b6c5cd 100644 --- a/meson.build +++ b/meson.build @@ -35,7 +35,7 @@ cdata.set10('_GNU_SOURCE', true) _funcs = [ 'open64', 'stat64', 'fopen64', '__stat64_time64', - '__secure_getenv', 'secure_getenv', + 'secure_getenv', ] foreach func : _funcs if cc.has_function(func, args : '-D_GNU_SOURCE') -- 2.47.2