X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftermios.in.h;h=540cb5f649f9b727ac3be6db8b92eaabdc23a7b6;hb=23eecb48e39afd0d267d64d40ba6bf97aa865e13;hp=10ef3e7accb0bbd678cf2e5ca342947627e991a0;hpb=b6d1430494cdd252cd52eca6abf88b1a00f6c983;p=gnulib.git diff --git a/lib/termios.in.h b/lib/termios.in.h index 10ef3e7ac..540cb5f64 100644 --- a/lib/termios.in.h +++ b/lib/termios.in.h @@ -1,5 +1,5 @@ /* Substitute for and wrapper around . - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2013 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,28 +12,36 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ -#ifndef _GL_TERMIOS_H +#ifndef _@GUARD_PREFIX@_TERMIOS_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ +/* On HP-UX 11.00, some of the function declarations in , + included by , are not protected by extern "C". Enforce + "C" linkage for these functions nevertheless. */ +#if defined __hpux && defined __cplusplus +# include +# include +extern "C" { +# include +} +#endif + /* The include_next requires a split double-inclusion guard. */ #if @HAVE_TERMIOS_H@ # @INCLUDE_NEXT@ @NEXT_TERMIOS_H@ #endif -#ifndef _GL_TERMIOS_H -#define _GL_TERMIOS_H +#ifndef _@GUARD_PREFIX@_TERMIOS_H +#define _@GUARD_PREFIX@_TERMIOS_H -#if @GNULIB_TCGETSID@ /* Get pid_t. */ -# include -#endif +#include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ @@ -47,7 +55,7 @@ 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)); @@ -61,5 +69,5 @@ _GL_WARN_ON_USE (tcgetsid, "tcgetsid is not portable - " #endif -#endif /* _GL_TERMIOS_H */ -#endif /* _GL_TERMIOS_H */ +#endif /* _@GUARD_PREFIX@_TERMIOS_H */ +#endif /* _@GUARD_PREFIX@_TERMIOS_H */