aboutsummaryrefslogtreecommitdiffstats
path: root/include/utime.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-08-24 00:11:52 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-08-24 00:11:52 +0000
commitb36a5d7090738cfeb350d5a87987bd44c35051d0 (patch)
tree8f19592efa8d9e985db247c11c09de1bb68666ca /include/utime.h
parent8e708563c79fd3c2f51b2e0f7fa9f1c6098b30d5 (diff)
downloadsrc-b36a5d7090738cfeb350d5a87987bd44c35051d0.tar.gz
src-b36a5d7090738cfeb350d5a87987bd44c35051d0.zip
Add time_t typedef for POSIX compatibility, move an include.
Notes
Notes: svn path=/head/; revision=102337
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 64511c074fa8..8f803657bc48 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