time_r: Add missing declarations on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Fri, 31 Dec 2010 13:01:33 +0000 (14:01 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 31 Dec 2010 13:01:33 +0000 (14:01 +0100)
commit115dcb2a1ade67d78b430081e225f46aad742e7b
tree08974292a3fd8a53a3d2112dd6dfe0b9f0e4ee6f
parent57505a676083a77cf44f683f65281c7fff5bf6fb
time_r: Add missing declarations on HP-UX 11.

* lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
instead of HAVE_LOCALTIME_R.
* m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
HAVE_LOCALTIME_R always.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
* modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
HAVE_LOCALTIME_R.
* doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
* doc/posix-functions/localtime_r.texi: Likewise.
ChangeLog
doc/posix-functions/gmtime_r.texi
doc/posix-functions/localtime_r.texi
lib/time.in.h
m4/time_h.m4
m4/time_r.m4
modules/time