0001-meson-Fix-reallocarray-check.patch 1015 B

12345678910111213141516171819202122232425
  1. From 1ebf1a1df17afd8b89f84b1928a89069035bf20b Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 12 Dec 2020 16:15:57 -0800
  4. Subject: [PATCH] meson: Fix reallocarray check
  5. reallocarray() is defined in stdlib.h, so that would be right header to
  6. check for its presense.
  7. Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/17951]
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. meson.build | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. --- a/meson.build
  13. +++ b/meson.build
  14. @@ -501,7 +501,7 @@ foreach ident : [
  15. #include <sys/stat.h>
  16. #include <unistd.h>'''],
  17. ['explicit_bzero' , '''#include <string.h>'''],
  18. - ['reallocarray', '''#include <malloc.h>'''],
  19. + ['reallocarray', '''#include <stdlib.h>'''],
  20. ['set_mempolicy', '''#include <stdlib.h>
  21. #include <unistd.h>'''],
  22. ['get_mempolicy', '''#include <stdlib.h>