summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-12-12 16:15:57 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-16 14:31:40 +0100
commit04be042a1fad5df6efc25b22b8202c812c6d3441 (patch)
tree97c4c0b893feb68faef98936b8e515538da46408
parent5e906f483b2bb8ecdaa245110292dcb8216524da (diff)
downloadsystemd-04be042a1fad5df6efc25b22b8202c812c6d3441.tar.gz
meson: Fix reallocarray check
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)
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index a947d8bfb6..580964c3fa 100644
--- a/meson.build
+++ b/meson.build
@@ -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>