summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-05-13 08:39:21 +0000
committerderaadt <deraadt@openbsd.org>1998-05-13 08:39:21 +0000
commitf500f291349f300b4586f65c7dc17ec50cd9e44d (patch)
treed3ebe92b16ea215acccd6a439a584ad82584b639
parentUse DEV_BSIZE instead of the wasteful MAXBSIZE for buffer size. (diff)
downloadwireguard-openbsd-f500f291349f300b4586f65c7dc17ec50cd9e44d.tar.xz
wireguard-openbsd-f500f291349f300b4586f65c7dc17ec50cd9e44d.zip
provide time_t without sys/types.h; kleink
-rw-r--r--include/utime.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/utime.h b/include/utime.h
index 410926de956..97591d0466f 100644
--- a/include/utime.h
+++ b/include/utime.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: utime.h,v 1.2 1997/09/21 10:45:59 niklas Exp $ */
+/* $OpenBSD: utime.h,v 1.3 1998/05/13 08:39:21 deraadt Exp $ */
/* $NetBSD: utime.h,v 1.3 1994/10/26 00:56:39 cgd Exp $ */
/*-
@@ -39,6 +39,13 @@
#ifndef _UTIME_H_
#define _UTIME_H_
+#include <machine/ansi.h>
+
+#ifdef _BSD_TIME_T_
+typedef _BSD_TIME_T_ time_t;
+#undef _BSD_TIME_T_
+#endif
+
struct utimbuf {
time_t actime; /* Access time */
time_t modtime; /* Modification time */