1 /* Substitute for and wrapper around <pty.h>.
2 Copyright (C) 2010 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
21 @PRAGMA_SYSTEM_HEADER@
24 /* The include_next requires a split double-inclusion guard. */
26 # @INCLUDE_NEXT@ @NEXT_PTY_H@
32 /* Some platforms declare this in a different header than glibc. */
40 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
42 /* The definition of _GL_WARN_ON_USE is copied here. */
45 /* Declare overridden functions. */
47 #if 1 /* FIXME - split forkpty into separate module */
48 #elif defined GNULIB_POSIXCHECK
50 # if HAVE_RAW_DECL_FORKPTY
51 _GL_WARN_ON_USE (forkpty, "forkpty is not declared consistently - "
52 "use gnulib module pty for portability");
56 #if 1 /* FIXME - split openpty into separate module */
57 #elif defined GNULIB_POSIXCHECK
59 # if HAVE_RAW_DECL_OPENPTY
60 _GL_WARN_ON_USE (openpty, "openpty is not declared consistently - "
61 "use gnulib module pty for portability");
66 #endif /* _GL_PTY_H */
67 #endif /* _GL_PTY_H */