]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Fix reallocarray check
authorKhem Raj <raj.khem@gmail.com>
Sun, 13 Dec 2020 00:15:57 +0000 (16:15 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 Dec 2020 08:44:29 +0000 (09:44 +0100)
reallocarray() is defined in stdlib.h, so that would be right header to
check for its presense.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meson.build

index d205f846c76d5aa004ae100a0fa4c09b08e7e597..e0a3c53529ff7af4e69317cbfdeef6988064fd5e 100644 (file)
@@ -517,7 +517,7 @@ foreach ident : [
                                  #include <sys/stat.h>
                                  #include <unistd.h>'''],
         ['explicit_bzero' ,   '''#include <string.h>'''],
-        ['reallocarray',      '''#include <malloc.h>'''],
+        ['reallocarray',      '''#include <stdlib.h>'''],
         ['set_mempolicy',     '''#include <stdlib.h>
                                  #include <unistd.h>'''],
         ['get_mempolicy',     '''#include <stdlib.h>