summaryrefslogtreecommitdiff
path: root/sys/src/ape/cmd/pdksh/ksh_time.h
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
commite5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch)
treed8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/ape/cmd/pdksh/ksh_time.h
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/ape/cmd/pdksh/ksh_time.h')
-rwxr-xr-xsys/src/ape/cmd/pdksh/ksh_time.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/src/ape/cmd/pdksh/ksh_time.h b/sys/src/ape/cmd/pdksh/ksh_time.h
new file mode 100755
index 000000000..7cbc3429f
--- /dev/null
+++ b/sys/src/ape/cmd/pdksh/ksh_time.h
@@ -0,0 +1,25 @@
+#ifndef KSH_TIME_H
+# define KSH_TIME_H
+
+/* Wrapper around the ugly time.h,sys/time.h includes/ifdefs */
+/* $Id$ */
+
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else /* TIME_WITH_SYS_TIME */
+# ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif /* TIME_WITH_SYS_TIME */
+
+#ifndef TIME_DECLARED
+extern time_t time ARGS((time_t *));
+#endif
+
+#ifndef CLK_TCK
+# define CLK_TCK 60 /* 60HZ */
+#endif
+#endif /* KSH_TIME_H */