mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
[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:
parent
743c00e3ce
commit
347a6c2dd8
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user