]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing_stdlib: secure_getenv() exists since glibc-2.17
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Feb 2025 16:07:35 +0000 (01:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 17:24:49 +0000 (02:24 +0900)
meson.build
src/basic/missing_stdlib.h [deleted file]
src/shared/libcrypt-util.c

index 7cf12bc452e0f3042cb8abdb215fcff7599f8a35..a8876cfe01981520c1967074350c9096a1ce3de4 100644 (file)
@@ -598,10 +598,6 @@ endforeach
 
 conf.set10('WANT_LINUX_FS_H', want_linux_fs_h)
 
-foreach ident : ['secure_getenv', '__secure_getenv']
-        conf.set10('HAVE_' + ident.to_upper(), cc.has_function(ident))
-endforeach
-
 foreach ident : [
         ['fchmodat2',         '''#include <stdlib.h>
                                  #include <fcntl.h>'''],      # no known header declares fchmodat2
diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h
deleted file mode 100644 (file)
index 8c76f93..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/* SPDX-License-Identifier: LGPL-2.1-or-later */
-#pragma once
-
-#include <stdlib.h>
-
-/* stdlib.h */
-#if !HAVE_SECURE_GETENV
-#  if HAVE___SECURE_GETENV
-#    define secure_getenv __secure_getenv
-#  else
-#    error "neither secure_getenv nor __secure_getenv are available"
-#  endif
-#endif
index 50b2502166bf74cce9d0f1df44c0f8023255e564..c04c0eeea86b43e7f75fe5d6ed04d4a00794a1d9 100644 (file)
@@ -24,7 +24,6 @@
 #include "log.h"
 #include "macro.h"
 #include "memory-util.h"
-#include "missing_stdlib.h"
 #include "random-util.h"
 #include "string-util.h"
 #include "strv.h"