mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-31 12:50:02 +00:00
gator-daemon: Define _GNU_SOURCE feature test macro
Needed for getting vasprintf API from libc Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
From 04e2e924c3ab8da41343277746804dbcd7bf520d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Sat, 13 Aug 2022 16:49:52 -0700
|
||||||
|
Subject: [PATCH] daemon/mxml: Define _GNU_SOURCE
|
||||||
|
|
||||||
|
This file uses vasprintf() which is defined only with _GNU_SOURCE
|
||||||
|
feature macro is on.
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
daemon/mxml/mxml-string.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/daemon/mxml/mxml-string.c b/daemon/mxml/mxml-string.c
|
||||||
|
index 678aeb9..c9cd153 100644
|
||||||
|
--- a/daemon/mxml/mxml-string.c
|
||||||
|
+++ b/daemon/mxml/mxml-string.c
|
||||||
|
@@ -13,6 +13,8 @@
|
||||||
|
* Include necessary headers...
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#define _GNU_SOURCE
|
||||||
|
+
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
2.37.2
|
||||||
|
|
||||||
@@ -18,6 +18,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
|||||||
SRCREV = "9d8d75fa08352470c51abc23fe3b314879bd8b78"
|
SRCREV = "9d8d75fa08352470c51abc23fe3b314879bd8b78"
|
||||||
SRC_URI = "git://github.com/ARM-software/gator.git;protocol=http;branch=main;protocol=https \
|
SRC_URI = "git://github.com/ARM-software/gator.git;protocol=http;branch=main;protocol=https \
|
||||||
file://0001-Sources.mk-Remove-xml-PmuXMLParser.h-header-from-GAT.patch;striplevel=2 \
|
file://0001-Sources.mk-Remove-xml-PmuXMLParser.h-header-from-GAT.patch;striplevel=2 \
|
||||||
|
file://0001-daemon-mxml-Define-_GNU_SOURCE.patch;striplevel=2 \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git/daemon"
|
S = "${WORKDIR}/git/daemon"
|
||||||
|
|||||||
Reference in New Issue
Block a user