ttyname_r: Add missing declaration on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Mon, 20 Dec 2010 12:10:22 +0000 (13:10 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 20 Dec 2010 12:10:22 +0000 (13:10 +0100)
commit5ceff07480611f65854730efe3b07e3f6de2ba80
treeca210f1122da3d7a23ab3bc5b9c3c79c40730193
parent7a85bea5631913483046e8f47893e4d42dafb2c9
ttyname_r: Add missing declaration on HP-UX 11.

* lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
HAVE_TTYNAME_R.
* m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
declared. Set HAVE_TTYNAME_R always.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
* modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
HAVE_TTYNAME_R.
* doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
ChangeLog
doc/posix-functions/ttyname_r.texi
lib/unistd.in.h
m4/ttyname_r.m4
m4/unistd_h.m4
modules/unistd