projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d1b29
)
Declare localtime_r if necessary.
author
Jim Meyering
<jim@meyering.net>
Sun, 18 Oct 1998 01:11:35 +0000
(
01:11
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 18 Oct 1998 01:11:35 +0000
(
01:11
+0000)
lib/strftime.c
patch
|
blob
|
history
diff --git
a/lib/strftime.c
b/lib/strftime.c
index
33dec13
..
7a41a4f
100644
(file)
--- a/
lib/strftime.c
+++ b/
lib/strftime.c
@@
-48,10
+48,9
@@
#include <ctype.h>
#include <sys/types.h> /* Some systems define `time_t' here. */
-/* Some systems require <unistd.h> to be included before <time.h>
- for localtime_r to be declared properly. */
-#if HAVE_UNISTD_H
-# include <unistd.h>
+/* Provide a declaration of localtime_r on systems that lack it. */
+#if ! defined HAVE_DECL_LOCALTIME_R
+extern struct tm* localtime_r ();
#endif
#ifdef TIME_WITH_SYS_TIME