Libc: stdlib uses undefined TARGET_OS_EMBEDDED

This commit is contained in:
toonn 2021-07-26 16:27:38 +02:00 committed by Jonathan Ringer
parent 36a953f78c
commit 99bef31835
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,24 @@
From 6e573a85b46dcfae323a99aa561c0dcc016a7791 Mon Sep 17 00:00:00 2001
From: toonn <toonn@toonn.io>
Date: Mon, 26 Jul 2021 16:19:44 +0200
Subject: [PATCH] Include Targetconditionals in stdlib
---
include/stdlib.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/stdlib.h b/include/stdlib.h
index c04d3a7..94a9812 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -59,6 +59,7 @@
#define _STDLIB_H_
#include <Availability.h>
+#include <TargetConditionals.h>
#include <_types.h>
#if !defined(_ANSI_SOURCE)
--
2.17.2 (Apple Git-113)

View File

@ -3,6 +3,8 @@
appleDerivation' stdenvNoCC {
nativeBuildInputs = [ ed unifdef ];
patches = [ ./0001-Include-Targetconditionals-in-stdlib.patch ];
# TODO: asl.h actually comes from syslog project now
installPhase = ''
export SRCROOT=$PWD