pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Sep 2010 10:02:44 +0000 (12:02 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Sep 2010 10:02:44 +0000 (12:02 +0200)
commitcc85acd7729af217a8f4820ecb36a9be816dba75
tree069cd9950baa83af4fa09788c774ed99f4657010
parentc753b7cad5ab21d847f4a2fdae0eae0cec69198a
pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.

* doc/glibc-functions/login_tty.texi: Mention the include file problem
on FreeBSD 8.0 and OpenBSD 4.6.
* lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
* m4/pty_h.m4 (gl_PTY_H): Likewise.
* m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
* m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
ac_includes_default.
Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
ChangeLog
doc/glibc-functions/login_tty.texi
lib/pty.in.h
m4/pty.m4
m4/pty_h.m4
m4/readutmp.m4