]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
memory-util: explicit_bzero() exists since glibc-2.25
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Feb 2025 15:14:24 +0000 (00:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 17:24:49 +0000 (02:24 +0900)
meson.build
src/fundamental/memory-util-fundamental.h

index 05c13e947fcc1507395fa9bb3409ab492684e07d..108e3d46b055069fea05b7172e94bf80871c068e 100644 (file)
@@ -615,7 +615,6 @@ foreach ident : [
                                  #include <keyutils.h>'''],
         ['bpf',               '''#include <sys/syscall.h>
                                  #include <unistd.h>'''],
-        ['explicit_bzero' ,   '''#include <string.h>'''],
         ['reallocarray',      '''#include <stdlib.h>'''],
         ['set_mempolicy',     '''#include <stdlib.h>
                                  #include <unistd.h>'''],
index 6870f54f584429615fcde27130ebb0afe97aab40..6c3aac34a20851132c2a5a1dd93c6e46d37164df 100644 (file)
@@ -17,7 +17,7 @@
                 _l_ > 0 ? memset((x), 0, _l_) : (x);            \
         })
 
-#if !SD_BOOT && HAVE_EXPLICIT_BZERO
+#if !SD_BOOT
 static inline void *explicit_bzero_safe(void *p, size_t l) {
         if (p && l > 0)
                 explicit_bzero(p, l);