Don't invoke localtime_r or gmtime_r unless it's the GNU C
authorJim Meyering <jim@meyering.net>
Sun, 18 Oct 1998 14:08:35 +0000 (14:08 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 18 Oct 1998 14:08:35 +0000 (14:08 +0000)
commitd37eda272fb7b153911e44d49be4b96140894074
tree56c868a36266fb66c41d798c69807a1aa33fabf4
parent7be311ab4fc49afdc4f44342f03e486e11d2065f
Don't invoke localtime_r or gmtime_r unless it's the GNU C
library's localtime_r and gmtime_r; there are too many buggy
implementations of localtime_r and gmtime_r out there, and
it's not worth keeping track of all the different bugs.

* mktime.c (__EXTENSIONS__, HAVE_LOCALTIME_R): Remove.
(my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
Base it on localtime unless _LIBC.
lib/mktime.c