login_tty: Make the replacement code work on BSD systems.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Sep 2010 02:05:32 +0000 (04:05 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Sep 2010 02:05:32 +0000 (04:05 +0200)
commit858adc30f925a47ab117e469af9a1a2b178b8fd0
tree3157e25024a985dc381f796384aec864219604c3
parentb7c95ee2f21751f24fd6245a8545cc8b3c555e60
login_tty: Make the replacement code work on BSD systems.

* lib/login_tty.c: Include <sys/ioctl.h>.
(login_tty): Use ioctl TIOCSCTTY when available.
* modules/login_tty (Depends-on): Add sys_ioctl.
Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
ChangeLog
lib/login_tty.c
modules/login_tty