summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/time.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index 261a5c6e0..f8bb53eb1 100644
--- a/newlib/libc/include/time.h
+++ b/newlib/libc/include/time.h
@@ -66,8 +66,20 @@ struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *));
extern __IMPORT time_t _timezone;
extern __IMPORT int _daylight;
extern __IMPORT char *_tzname[2];
-
+/* defines for the opengroup specifications Derived from Issue 1 of the SVID. */
+#ifndef tzname
+#define tzname _tzname
+#endif
+#ifndef daylight
+#define daylight _daylight
+#endif
+#if timezonevar
+#ifndef timezone
+#define timezone ((long int) _timezone)
+#endif
+#else
char *_EXFUN(timezone, (void));
+#endif
void _EXFUN(tzset, (void));
#endif
#endif /* __CYGWIN__ */