safec: Define _GNU_SOURCE

musl does not define this variable automatically but safec does provide
wrapper for some GNU extentions as well e.g.

error: implicit declaration of function 'localtime_r' is invalid in C99

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2019-09-10 23:52:53 -07:00
parent cb4d681228
commit c93f66d65a
+2
View File
@@ -10,6 +10,8 @@ S = "${WORKDIR}/git"
SRCREV = "62e6b2df55084316d027165d286e46beb40513dc"
SRC_URI = "git://github.com/rurban/safeclib.git"
CPPFLAGS_append_libc-musl = " -D_GNU_SOURCE"
COMPATIBLE_HOST = '(x86_64|i.86|powerpc|powerpc64|arm).*-linux'
RDEPENDS_${PN} = "perl"