# HG changeset patch # User Paul Eggert # Date 1462130152 25200 # Node ID ebba8469e29da7ae96fa9a00fe36abc280c7660c # Parent e04e8b486f7093be7ff498f67c998fc039e3d1f7 mktime: resurrect DEBUG_MKTIME testing * lib/mktime.c [DEBUG_MKTIME]: Do not include . Include , for strcmp. diff -r e04e8b486f70 -r ebba8469e29d ChangeLog --- a/ChangeLog Sun May 01 12:10:37 2016 -0700 +++ b/ChangeLog Sun May 01 12:15:52 2016 -0700 @@ -1,5 +1,9 @@ 2016-05-01 Paul Eggert + mktime: resurrect DEBUG_MKTIME testing + * lib/mktime.c [DEBUG_MKTIME]: Do not include . + Include , for strcmp. + mktime: simplify DEBUG_MKTIME * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined. Simplify later usage accordingly. diff -r e04e8b486f70 -r ebba8469e29d lib/mktime.c --- a/lib/mktime.c Sun May 01 12:10:37 2016 -0700 +++ b/lib/mktime.c Sun May 01 12:15:52 2016 -0700 @@ -23,7 +23,7 @@ # define DEBUG_MKTIME 0 #endif -#ifndef _LIBC +#if !defined _LIBC && !DEBUG_MKTIME # include #endif @@ -45,6 +45,7 @@ #if DEBUG_MKTIME # include # include +# include /* Make it work even if the system's libc has its own mktime routine. */ # undef mktime # define mktime my_mktime