Loading...
--- Libc/Libc-1725.40.4/include/utmp.h
+++ Libc/Libc-498/include/utmp.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2005, 2007, 2008 Apple Inc. All rights reserved.
+ * Copyright (c) 2000, 2005, 2007 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
@@ -72,7 +72,12 @@
*/
#include <_types.h>
-#include <sys/_types/_time_t.h>
+#include <available.h>
+
+#ifndef _TIME_T
+#define _TIME_T
+typedef __darwin_time_t time_t;
+#endif
/* These files no longer exist in 10.5 and later */
#define _PATH_UTMP "/var/run/utmp"
@@ -87,13 +92,13 @@
time_t ll_time;
char ll_line[UT_LINESIZE];
char ll_host[UT_HOSTSIZE];
-} __deprecated;
+} __DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER;
struct utmp {
char ut_line[UT_LINESIZE];
char ut_name[UT_NAMESIZE];
char ut_host[UT_HOSTSIZE];
long ut_time;
-} __deprecated;
+} __DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER;
#endif /* !_UTMP_H_ */