diff options
author | Jay Freeman <saurik@saurik.com> | 2009-08-09 02:52:49 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2009-08-09 02:52:49 +0000 |
commit | 08765dd8f7505e826442175cae221a3404955421 (patch) | |
tree | 3d16e10835915576812b1ce5402c346c472d2a61 /tool/patches/utmpx.diff | |
parent | 1fc212398c58ef27963f84fa69df552acacf7767 (diff) |
Added the utmpx.h patch for jlanger.
git-svn-id: http://svn.telesphoreo.org/trunk@648 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'tool/patches/utmpx.diff')
-rw-r--r-- | tool/patches/utmpx.diff | 24 |
1 files changed, 24 insertions, 0 deletions
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 * |