@PRAGMA_COLUMNS@
/* The include_next requires a split double-inclusion guard. */
-#@INCLUDE_NEXT@ @NEXT_TERMIOS_H@
+#if @HAVE_TERMIOS_H@
+# @INCLUDE_NEXT@ @NEXT_TERMIOS_H@
+#endif
#ifndef _GL_TERMIOS_H
#define _GL_TERMIOS_H
The argument is a descriptor if this controlling terminal.
Return -1, with errno set, upon failure. errno = ENOSYS means that the
function is unsupported. */
-# if !@HAVE_TCGETSID@
+# if !@HAVE_DECL_TCGETSID@
_GL_FUNCDECL_SYS (tcgetsid, pid_t, (int fd));
# endif
_GL_CXXALIAS_SYS (tcgetsid, pid_t, (int fd));