summaryrefslogtreecommitdiff
path: root/include/utime.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-13 08:39:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-13 08:39:22 +0000
commitd42c04a67674249ebcb7704fd0826b517b048685 (patch)
treef17a1a41b1d3a870cacd61882085480100861e11 /include/utime.h
parent010cf40c8489f1dc39784741b021522115923f9e (diff)
provide time_t without sys/types.h; kleink
Diffstat (limited to 'include/utime.h')
-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 */