summaryrefslogtreecommitdiffstats
path: root/include/utime.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/utime.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/utime.h')
-rw-r--r--include/utime.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/utime.h b/include/utime.h
index 3b85ff5902d..9fab94f8c16 100644
--- a/include/utime.h
+++ b/include/utime.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: utime.h,v 1.5 2003/06/02 19:34:12 millert Exp $ */
+/* $OpenBSD: utime.h,v 1.6 2006/01/06 18:53:04 millert Exp $ */
/* $NetBSD: utime.h,v 1.3 1994/10/26 00:56:39 cgd Exp $ */
/*-
@@ -35,11 +35,12 @@
#ifndef _UTIME_H_
#define _UTIME_H_
-#include <machine/ansi.h>
+#include <sys/cdefs.h>
+#include <machine/_types.h>
-#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
struct utimbuf {
@@ -47,8 +48,6 @@ struct utimbuf {
time_t modtime; /* Modification time */
};
-#include <sys/cdefs.h>
-
__BEGIN_DECLS
int utime(const char *, const struct utimbuf *);
__END_DECLS