summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/mint/time.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-04-29 22:36:41 +0000
committermillert <millert@openbsd.org>1999-04-29 22:36:41 +0000
commit0a5f61bb653fdff7c29c2275df78c7f019a04c0c (patch)
tree0b6e610f8913b7c1e30fd7bf5bfc62edcbbd93e5 /gnu/usr.bin/perl/mint/time.h
parentY2K fix: allow 'shutdown yymmddhhmm' to work in the next century. (diff)
downloadwireguard-openbsd-0a5f61bb653fdff7c29c2275df78c7f019a04c0c.tar.xz
wireguard-openbsd-0a5f61bb653fdff7c29c2275df78c7f019a04c0c.zip
perl5.005_03
Diffstat (limited to 'gnu/usr.bin/perl/mint/time.h')
-rw-r--r--gnu/usr.bin/perl/mint/time.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/mint/time.h b/gnu/usr.bin/perl/mint/time.h
new file mode 100644
index 00000000000..d6b031db312
--- /dev/null
+++ b/gnu/usr.bin/perl/mint/time.h
@@ -0,0 +1,22 @@
+/* Wrapper around broken system time.h. */
+
+#ifndef _PERL_WRAPPER_AROUND_TIME_H
+# define _PERL_WRAPPER_AROUND_TIME_H 1
+
+/* Recent versions of the MiNTLib have a macro HAS_TZNAME in
+ time.h resp. sys/time.h. Wow, I wonder why they didn't
+ define HAVE_CONFIG_H ... */
+#ifdef HAS_TZNAME
+# define PERL_HAS_TZNAME HAS_TZNAME
+#endif
+
+/* First include the system file. */
+#include_next <time.h>
+
+#ifdef HAS_TZNAME
+# undef HAS_TZNAME
+# define HAS_TZNAME PERL_HAS_TZNAME
+#endif
+
+#endif
+