From afdd4811bdbe4398643f20210e3b0850d1228110 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Tue, 17 Jun 2008 19:25:07 +0000 Subject: Merging in all the latest header patches. git-svn-id: http://svn.telesphoreo.org/trunk@321 514c082c-b64e-11dc-b46d-3d985efe055d --- tool/patches/Availability.diff | 13 +++++++++++++ tool/patches/AvailabilityInternal.diff | 24 ++++++++++++++++++++++++ tool/patches/OSServices.diff | 20 ++++++++++++++++++++ tool/patches/util.diff | 16 ++++++++++++++++ tool/patches/utmp.diff | 13 +++++++++++++ 5 files changed, 86 insertions(+) create mode 100644 tool/patches/Availability.diff create mode 100644 tool/patches/AvailabilityInternal.diff create mode 100644 tool/patches/OSServices.diff create mode 100644 tool/patches/util.diff create mode 100644 tool/patches/utmp.diff (limited to 'tool/patches') diff --git a/tool/patches/Availability.diff b/tool/patches/Availability.diff new file mode 100644 index 000000000..c411fe868 --- /dev/null +++ b/tool/patches/Availability.diff @@ -0,0 +1,13 @@ +diff --git /usr/include/Availability.h /usr/include/Availability.h +index 1c3e1cf..cb81edb 100644 +--- /usr/include/Availability.h ++++ /usr/include/Availability.h +@@ -98,6 +98,8 @@ + #define __MAC_10_6 1060 + #define __MAC_NA 9999 /* not available */ + ++#define __IPHONE_1_0 10000 ++#define __IPHONE_1_2 10200 + #define __IPHONE_2_0 20000 + #define __IPHONE_NA 99999 /* not available */ + diff --git a/tool/patches/AvailabilityInternal.diff b/tool/patches/AvailabilityInternal.diff new file mode 100644 index 000000000..12b4953d4 --- /dev/null +++ b/tool/patches/AvailabilityInternal.diff @@ -0,0 +1,24 @@ +diff --git /usr/include/AvailabilityInternal.h /usr/include/AvailabilityInternal.h +index bf8ba70..10caed4 100644 +--- /usr/include/AvailabilityInternal.h ++++ /usr/include/AvailabilityInternal.h +@@ -50,6 +50,19 @@ + #define __AVAILABILITY_INTERNAL__IPHONE_2_0_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL_DEPRECATED + #define __AVAILABILITY_INTERNAL__IPHONE_NA_DEP__IPHONE_NA __AVAILABILITY_INTERNAL_UNAVAILABLE + ++ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_1_2 ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_1_2 __AVAILABILITY_INTERNAL_DEPRECATED ++ #else ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_1_2 __AVAILABILITY_INTERNAL__IPHONE_1_0 ++ #endif ++ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_2_0 ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL_DEPRECATED ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_2_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL_DEPRECATED ++ #else ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_0_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL__IPHONE_1_0 ++ #define __AVAILABILITY_INTERNAL__IPHONE_1_2_DEP__IPHONE_2_0 __AVAILABILITY_INTERNAL__IPHONE_1_2 ++ #endif ++ + #elif defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) + // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ + #define __MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ diff --git a/tool/patches/OSServices.diff b/tool/patches/OSServices.diff new file mode 100644 index 000000000..f0b8a986a --- /dev/null +++ b/tool/patches/OSServices.diff @@ -0,0 +1,20 @@ +diff --git /usr/include/OSServices/OSServices.h /usr/include/OSServices/OSServices.h +index f14355d..c3295cf 100644 +--- /usr/include/OSServices/OSServices.h ++++ /usr/include/OSServices/OSServices.h +@@ -53,6 +53,7 @@ + #include + #endif + ++#if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)) + #ifndef __WSMETHODINVOCATION__ + #include + #endif +@@ -60,6 +61,7 @@ + #ifndef __WSPROTOCOLHANDLER__ + #include + #endif ++#endif + + + #if !__LP64__ diff --git a/tool/patches/util.diff b/tool/patches/util.diff new file mode 100644 index 000000000..3796e6ea2 --- /dev/null +++ b/tool/patches/util.diff @@ -0,0 +1,16 @@ +diff --git /usr/include/util.h /usr/include/util.h +index c70c6fb..1effc37 100644 +--- /usr/include/util.h ++++ /usr/include/util.h +@@ -86,9 +86,9 @@ + + __BEGIN_DECLS + struct utmp; /* forward reference to /usr/include/utmp.h */ +-void login(struct utmp *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA); ++void login(struct utmp *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_1_2,__IPHONE_2_0); + int login_tty(int); +-int logout(const char *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA); ++int logout(const char *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_1_2,__IPHONE_2_0); + void logwtmp(const char *, const char *, const char *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_2_0,__IPHONE_2_0); + int opendev(char *, int, int, char **); + int openpty(int *, int *, char *, struct termios *, diff --git a/tool/patches/utmp.diff b/tool/patches/utmp.diff new file mode 100644 index 000000000..80268d717 --- /dev/null +++ b/tool/patches/utmp.diff @@ -0,0 +1,13 @@ +diff --git /usr/include/utmp.h /usr/include/utmp.h +index a361c50..24d6f50 100644 +--- /usr/include/utmp.h ++++ /usr/include/utmp.h +@@ -92,7 +92,7 @@ struct lastlog { + time_t ll_time; + char ll_line[UT_LINESIZE]; + char ll_host[UT_HOSTSIZE]; +-} __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA); ++} __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_1_2,__IPHONE_2_0); + + struct utmp { + char ut_line[UT_LINESIZE]; -- cgit v1.2.3