diff options
author | Jay Freeman <saurik@saurik.com> | 2008-06-28 18:32:20 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-06-28 18:32:20 +0000 |
commit | 7b493b4c1beda8311ab3e9454ad77d10bdeb1363 (patch) | |
tree | 82669d85f23b5e50c4b0e459983c7719b547153c | |
parent | 1625be4b1c8931bccd4775d208ef6a877d7cb92d (diff) |
Added cdefs hack for newer headers on 1.1.x.
git-svn-id: http://svn.telesphoreo.org/trunk@334 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r-- | tool/include.diff | 14 | ||||
-rw-r--r-- | tool/patches/cdefs.diff | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tool/include.diff b/tool/include.diff index eb74e2c67..0cf93a591 100644 --- a/tool/include.diff +++ b/tool/include.diff @@ -63,6 +63,20 @@ index bf8ba70..10caed4 100644 #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4 #elif __arm__ #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_5 +diff --git /usr/include/sys/cdefs.h /usr/include/sys/cdefs.h +index 64e4e8b..0f43f4c 100644 +--- /usr/include/sys/cdefs.h ++++ /usr/include/sys/cdefs.h +@@ -253,7 +253,9 @@ + + /* These settings are particular to each product. */ + /* Product: iPhone */ ++#if __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__-0 >= 20000 + #define __DARWIN_ONLY_64_BIT_INO_T 1 ++#endif + #define __DARWIN_ONLY_UNIX_CONFORMANCE 1 + #define __DARWIN_ONLY_VERS_1050 1 + --- /usr/include/CoreFoundation/CoreFoundation.h 2008-02-27 06:36:09.000000000 +0000 +++ /usr/include/CoreFoundation/CoreFoundation.h 2008-03-29 18:47:27.000000000 +0000 @@ -78,7 +78,7 @@ diff --git a/tool/patches/cdefs.diff b/tool/patches/cdefs.diff new file mode 100644 index 000000000..69828dfb6 --- /dev/null +++ b/tool/patches/cdefs.diff @@ -0,0 +1,14 @@ +diff --git /usr/include/sys/cdefs.h /usr/include/sys/cdefs.h +index 64e4e8b..0f43f4c 100644 +--- /usr/include/sys/cdefs.h ++++ /usr/include/sys/cdefs.h +@@ -253,7 +253,9 @@ + + /* These settings are particular to each product. */ + /* Product: iPhone */ ++#if __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__-0 >= 20000 + #define __DARWIN_ONLY_64_BIT_INO_T 1 ++#endif + #define __DARWIN_ONLY_UNIX_CONFORMANCE 1 + #define __DARWIN_ONLY_VERS_1050 1 + |