posix_openpt: Support for OpenBSD.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Oct 2011 15:44:40 +0000 (17:44 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 20 Oct 2011 15:46:35 +0000 (17:46 +0200)
commit3b50d1963aa9a19cf75a6fe8950d8647d1232105
tree5955c70884b20fd26ce67d6ae053957c031a3ad3
parent9ad470eff9f0d4af8ac1c67881a798c180d4a6df
posix_openpt: Support for OpenBSD.

* lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
(posix_openpt) [OpenBSD]: New code.
* lib/grantpt.c: Include <fcntl.h>.
(grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
* modules/grantpt (Depends-on): Add fcntl-h.
ChangeLog
lib/grantpt.c
lib/posix_openpt.c
modules/grantpt