.
[gnulib.git] / m4 / mktime.m4
index c821830..fef2222 100644 (file)
@@ -26,10 +26,17 @@ changequote(<<, >>)dnl
 # endif
 #endif
 
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
 #if !HAVE_ALARM
 # define alarm(X) /* empty */
 #endif
 
+/* Work around redefinition to rpl_putenv by other config tests.  */
+#undef putenv
+
 static time_t time_t_max;
 
 /* Values we'll use to set the TZ environment variable.  */