summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/timemodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 25eb92dada..423c001e2b 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1160,6 +1160,7 @@ PyDoc_STRVAR(get_clock_info_doc,
\n\
Get information of the specified clock.");
+#if !defined(HAVE_TZNAME) || defined(__GLIBC__) || defined(__CYGWIN__)
static void
get_zone(char *zone, int n, struct tm *p)
{
@@ -1180,6 +1181,7 @@ get_gmtoff(time_t t, struct tm *p)
return timegm(p) - t;
#endif
}
+#endif /* !defined(HAVE_TZNAME) || defined(__GLIBC__) || defined(__CYGWIN__) */
static void
PyInit_timezone(PyObject *m) {