summaryrefslogtreecommitdiffstats
path: root/include/utime.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-08-24 00:11:52 +0000
committermike <mike@FreeBSD.org>2002-08-24 00:11:52 +0000
commitc38d8bf811f90f4768580ccb1a56e762aec92742 (patch)
tree8f19592efa8d9e985db247c11c09de1bb68666ca /include/utime.h
parentdf2202b150d5d504982a9ec4ccbe30f0df143416 (diff)
downloadFreeBSD-src-c38d8bf811f90f4768580ccb1a56e762aec92742.zip
FreeBSD-src-c38d8bf811f90f4768580ccb1a56e762aec92742.tar.gz
Add time_t typedef for POSIX compatibility, move an include.
Diffstat (limited to 'include/utime.h')
-rw-r--r--include/utime.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/utime.h b/include/utime.h
index 64511c0..8f80365 100644
--- a/include/utime.h
+++ b/include/utime.h
@@ -37,13 +37,19 @@
#ifndef _UTIME_H_
#define _UTIME_H_
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+
+#ifndef _TIME_T_DECLARED
+typedef __time_t time_t;
+#define _TIME_T_DECLARED
+#endif
+
struct utimbuf {
time_t actime; /* Access time */
time_t modtime; /* Modification time */
};
-#include <sys/cdefs.h>
-
__BEGIN_DECLS
int utime(const char *, const struct utimbuf *);
__END_DECLS
OpenPOWER on IntegriCloud