mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-31 01:10:08 +00:00
sdbus-c++-libsystemd: Fix reallocarray check in meson
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 4a171790a6)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
|||||||
|
From 1ebf1a1df17afd8b89f84b1928a89069035bf20b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Sat, 12 Dec 2020 16:15:57 -0800
|
||||||
|
Subject: [PATCH] meson: Fix reallocarray check
|
||||||
|
|
||||||
|
reallocarray() is defined in stdlib.h, so that would be right header to
|
||||||
|
check for its presense.
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/17951]
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
meson.build | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -501,7 +501,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>
|
||||||
@@ -41,6 +41,7 @@ SRC_URI_MUSL = "\
|
|||||||
file://0002-src-login-brightness.c-include-sys-wait.h.patch \
|
file://0002-src-login-brightness.c-include-sys-wait.h.patch \
|
||||||
file://0003-src-basic-copy.c-include-signal.h.patch \
|
file://0003-src-basic-copy.c-include-signal.h.patch \
|
||||||
file://0004-src-shared-cpu-set-util.h-add-__cpu_mask-definition.patch \
|
file://0004-src-shared-cpu-set-util.h-add-__cpu_mask-definition.patch \
|
||||||
|
file://0001-meson-Fix-reallocarray-check.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
PACKAGECONFIG ??= "gshadow idn"
|
PACKAGECONFIG ??= "gshadow idn"
|
||||||
|
|||||||
Reference in New Issue
Block a user