diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-08 12:08:03 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-08 12:08:03 +0200 |
commit | dc7c42cdfec450f109151649544b88765877e4ab (patch) | |
tree | 9406163436a5f8296c7ce9938fd7fed0f4cdf2af /doc | |
parent | 5b7ca4bc4f68ee49bb1c548c48ec11101fde07b2 (diff) | |
download | gnulib-dc7c42cdfec450f109151649544b88765877e4ab.tar.gz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/glibc-functions/login_tty.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/glibc-functions/login_tty.texi b/doc/glibc-functions/login_tty.texi index 3e743b1527..42e7068d91 100644 --- a/doc/glibc-functions/login_tty.texi +++ b/doc/glibc-functions/login_tty.texi @@ -25,7 +25,8 @@ Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11.3, Android 5.1. @item This function is declared in @code{<utmp.h>} on glibc, Cygwin, Android, in @code{<util.h>} on macOS 11.1, NetBSD 5.0, OpenBSD 3.8, -and in @code{<libutil.h>} on FreeBSD 13.0, Haiku. +in @code{<libutil.h>} on FreeBSD 13.0, Haiku, +and in @code{<termios.h>} on Solaris 11.4. @c Also note that @code{<sys/types.h>} is @c a prerequisite of @code{<utmp.h>} on FreeBSD 8.0, OpenBSD 4.6 and @c of @code{<libutil.h>} on FreeBSD 8.0. |