[BZ #468] Import a fix from gnulib.

* time/mktime.c [! DEBUG]: Do not include <string.h>.
	It's needed only if DEBUG is nonzero.
This commit is contained in:
Roland McGrath 2004-10-22 22:21:36 +00:00
parent 743c00e3ce
commit 347a6c2dd8
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
[BZ #468] Import a fix from gnulib.
* time/mktime.c [! DEBUG]: Do not include <string.h>.
It's needed only if DEBUG is nonzero.
[BZ #470] Import fix from gnulib.
* time/mktime.c [!_LIBC] (__mktime_internal): Define to
mktime_internal, to avoid clashes with any __mktime_internal

View File

@ -37,11 +37,11 @@
#include <time.h>
#include <limits.h>
#include <string.h> /* For string function builtin redirect. */
#if DEBUG
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
/* Make it work even if the system's libc has its own mktime routine. */
# define mktime my_mktime
#endif /* DEBUG */