diff options
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -7173,11 +7173,9 @@ val make_time(val year, val month, val day, return make_time_impl(mktime, year, month, day, hour, minute, second, isdst); } -#if !HAVE_TIMEGM - #if !HAVE_SETENV -static void -setenv(const char *name, const char *value, int overwrite) + +void setenv(const char *name, const char *value, int overwrite) { int len = strlen(name)+1+strlen(value)+1; char *str = (char *) chk_malloc(len); @@ -7186,13 +7184,16 @@ setenv(const char *name, const char *value, int overwrite) putenv(str); } -static void -unsetenv(const char *name) +void unsetenv(const char *name) { setenv(name, "", 1); } + #endif + +#if !HAVE_TIMEGM + static time_t timegm_hack(struct tm *tm) { time_t ret; |