]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build: stop checking for __secure_getenv
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 15 Sep 2024 00:40:37 +0000 (01:40 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 17 Sep 2024 03:01:35 +0000 (22:01 -0500)
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 <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/131
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
configure.ac
meson.build

index 15def643c634c80253fee9e48f48c8523609811c..c422cbb1ebc01a78b765bb3d484f7e1fbbb292c5 100644 (file)
@@ -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])
index 16ff67b9a4f4879a65604bbf3ae048c622368bb8..b4b6c5cde0e8f6ea4dedb1d7a5c331def0ffb9f0 100644 (file)
@@ -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')