summaryrefslogtreecommitdiffstats
path: root/include/time.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2006-01-06 18:53:04 +0000
committermillert <millert@openbsd.org>2006-01-06 18:53:04 +0000
commitc916d9484c509baa9353d23da83498a233020707 (patch)
treebc23cd53ac2a230eb3bbf73714b0c7e1ecb6e55a /include/time.h
parentMerge machine/ansi.h and machine/types.h into machine/_types.h and (diff)
downloadwireguard-openbsd-c916d9484c509baa9353d23da83498a233020707.tar.xz
wireguard-openbsd-c916d9484c509baa9353d23da83498a233020707.zip
Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/time.h b/include/time.h
index 41ebba4a73a..dfaffabe1d7 100644
--- a/include/time.h
+++ b/include/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.17 2005/12/13 00:35:22 millert Exp $ */
+/* $OpenBSD: time.h,v 1.18 2006/01/06 18:53:04 millert Exp $ */
/* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */
/*
@@ -42,7 +42,7 @@
#define _TIME_H_
#include <sys/cdefs.h>
-#include <machine/ansi.h>
+#include <machine/_types.h>
#ifndef NULL
#ifdef __GNUG__
@@ -52,19 +52,19 @@
#endif
#endif
-#ifdef _BSD_CLOCK_T_
-typedef _BSD_CLOCK_T_ clock_t;
-#undef _BSD_CLOCK_T_
+#ifndef _CLOCK_T_DEFINED_
+#define _CLOCK_T_DEFINED_
+typedef __clock_t clock_t;
#endif
-#ifdef _BSD_TIME_T_
-typedef _BSD_TIME_T_ time_t;
-#undef _BSD_TIME_T_
+#ifndef _TIME_T_DEFINED_
+#define _TIME_T_DEFINED_
+typedef __time_t time_t;
#endif
-#ifdef _BSD_SIZE_T_
-typedef _BSD_SIZE_T_ size_t;
-#undef _BSD_SIZE_T_
+#ifndef _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED_
+typedef __size_t size_t;
#endif
#if __POSIX_VISIBLE > 0 && __POSIX_VISIBLE < 200112 || __BSD_VISIBLE