Mercurial > hg > octave-kai > gnulib-hg
diff lib/strftime.c @ 1532:efffa4fa07de
Declare localtime_r if necessary.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 18 Oct 1998 01:10:21 +0000 (1998-10-18) |
parents | 753b9750d5a5 |
children | 72809df6189a |
line wrap: on
line diff
--- 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