Skip to content

Commit

Permalink
[BZ #468] Import a fix from gnulib.
Browse files Browse the repository at this point in the history
	* time/mktime.c [! DEBUG]: Do not include <string.h>.
	It's needed only if DEBUG is nonzero.
  • Loading branch information
Roland McGrath committed Oct 22, 2004
1 parent 743c00e commit 347a6c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion time/mktime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 347a6c2

Please sign in to comment.