diff options
-rw-r--r-- | tool/include.diff | 24 | ||||
-rw-r--r-- | tool/patches/utmpx.diff | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/tool/include.diff b/tool/include.diff index cab9b6cc7..ae52b6c13 100644 --- a/tool/include.diff +++ b/tool/include.diff @@ -591,6 +591,30 @@ index 4817457..30c9891 100644 typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; +diff --git a/utmpx.h b/utmpx.h +index ee657d2..1279ae5 100644 +--- a/utmpx.h ++++ b/utmpx.h +@@ -62,6 +62,7 @@ + + #include <_types.h> + #include <sys/time.h> ++#include <TargetConditionals.h> + + #ifndef _PID_T + #define _PID_T +@@ -149,9 +150,11 @@ struct lastlogx * + getlastlogx(uid_t, struct lastlogx *); + struct lastlogx * + getlastlogxbyname(const char*, struct lastlogx *); ++#if !TARGET_OS_IPHONE + struct utmp; /* forward reference */ + void getutmp(const struct utmpx *, struct utmp *); + void getutmpx(const struct utmp *, struct utmpx *); ++#endif + #endif /* !_POSIX_C_SOURCE || _DARWIN_C_SOURCE */ + + struct utmpx * diff --git /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h index b570daa..3309946 100644 --- /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h diff --git a/tool/patches/utmpx.diff b/tool/patches/utmpx.diff new file mode 100644 index 000000000..388fd0cea --- /dev/null +++ b/tool/patches/utmpx.diff @@ -0,0 +1,24 @@ +diff --git a/utmpx.h b/utmpx.h +index ee657d2..1279ae5 100644 +--- a/utmpx.h ++++ b/utmpx.h +@@ -62,6 +62,7 @@ + + #include <_types.h> + #include <sys/time.h> ++#include <TargetConditionals.h> + + #ifndef _PID_T + #define _PID_T +@@ -149,9 +150,11 @@ struct lastlogx * + getlastlogx(uid_t, struct lastlogx *); + struct lastlogx * + getlastlogxbyname(const char*, struct lastlogx *); ++#if !TARGET_OS_IPHONE + struct utmp; /* forward reference */ + void getutmp(const struct utmpx *, struct utmp *); + void getutmpx(const struct utmp *, struct utmpx *); ++#endif + #endif /* !_POSIX_C_SOURCE || _DARWIN_C_SOURCE */ + + struct utmpx * |