summaryrefslogtreecommitdiff
path: root/tool/patches/utmpx.diff
blob: 388fd0cea7c1468a837dcdcc9877add59f0e4940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 *