]> Savannah Git Hosting - gnulib.git/commitdiff
mktime: resurrect DEBUG_MKTIME testing
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2016 19:15:52 +0000 (12:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2016 00:27:04 +0000 (17:27 -0700)
* lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
Include <string.h>, for strcmp.

ChangeLog
lib/mktime.c

index 5b0dc9322b2de7881d93337a59c9b4f29bfbd0eb..0473a32cb3536350ada7ed30a6cffbe2b37fdb3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       mktime: resurrect DEBUG_MKTIME testing
+       * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
+       Include <string.h>, for strcmp.
+
        mktime: simplify DEBUG_MKTIME
        * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
        Simplify later usage accordingly.
index ccc6c5149f6ea812dfdc022d9299e780d12e7cd8..032ea39a94a7ad69f0f32a42e057525e6f49b99d 100644 (file)
@@ -23,7 +23,7 @@
 # define DEBUG_MKTIME 0
 #endif
 
-#ifndef _LIBC
+#if !defined _LIBC && !DEBUG_MKTIME
 # include <config.h>
 #endif
 
@@ -45,6 +45,7 @@
 #if DEBUG_MKTIME
 # include <stdio.h>
 # include <stdlib.h>
+# include <string.h>
 /* Make it work even if the system's libc has its own mktime routine.  */
 # undef mktime
 # define mktime my_mktime