]> 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>
Wed, 16 Dec 2020 13:31:40 +0000 (14:31 +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>
(cherry picked from commit 5bb20fd3d33f7e866a0845f15c1ab5b595147f1e)

meson.build

index a947d8bfb61d571c67f8fe6660614659d8aaa7ce..580964c3fad5f91c0a8bf9e535e9019fcde27125 100644 (file)
@@ -516,7 +516,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>