]> Savannah Git Hosting - gnulib.git/commit
login_tty: Fix compilation error in C++ mode on Solaris 11.4.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Apr 2023 10:08:03 +0000 (12:08 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Apr 2023 10:08:03 +0000 (12:08 +0200)
commitdc7c42cdfec450f109151649544b88765877e4ab
tree9406163436a5f8296c7ce9938fd7fed0f4cdf2af
parent5b7ca4bc4f68ee49bb1c548c48ec11101fde07b2
login_tty: Fix compilation error in C++ mode on Solaris 11.4.

* m4/login_tty.m4 (gl_FUNC_LOGIN_TTY): Test whether <termios.h> exists.
Consider it when testing whether login_tty is declared.
* lib/utmp.in.h: If none of <util.h> and <libutil.h> exists, include
<termios.h> instead.
* doc/glibc-functions/login_tty.texi: Document the Solaris 11.4 problem.
ChangeLog
doc/glibc-functions/login_tty.texi
lib/utmp.in.h
m4/login_tty.m4