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>
#####################################################################
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])
_funcs = [
'open64', 'stat64', 'fopen64', '__stat64_time64',
- '__secure_getenv', 'secure_getenv',
+ 'secure_getenv',
]
foreach func : _funcs
if cc.has_function(func, args : '-D_GNU_SOURCE')