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:28:13 +0100
commitcd0c740468106f8dfff783fb3d93b73d1cd18a95 (patch)
tree662dd40c313b6576bd5bc5fe663877dd6151e3c2
parent61bb861036d85d444cb5d372f0af7c8df671f31f (diff)
downloadsystemd-cd0c740468106f8dfff783fb3d93b73d1cd18a95.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) (cherry picked from commit 1d8cfe817861a0b0de2b561f6770e33d1242db63)
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index d21f720332..c96e3c838d 100644
--- a/meson.build
+++ b/meson.build
@@ -511,7 +511,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>