Skip to content

Commit bf75f1b

Browse files
8vasugpshead
andauthored
gh-85984: Add _POSIX_VDISABLE from unistd.h to termios module. (#114985)
Signed-off-by: Soumendra Ganguly <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
1 parent aeffc7f commit bf75f1b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added ``_POSIX_VDISABLE`` from C's ``<unistd.h>`` to :mod:`termios`.

Modules/termios.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727

2828
#include <termios.h>
2929
#include <sys/ioctl.h>
30-
#if defined(__sun) && defined(__SVR4)
31-
# include <unistd.h> // ioctl()
32-
#endif
30+
#include <unistd.h> // _POSIX_VDISABLE
3331

3432
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
3533
* MDTR, MRI, and MRTS (apparently used internally by some things
@@ -1315,6 +1313,9 @@ static struct constant {
13151313
#ifdef TIOCTTYGSTRUCT
13161314
{"TIOCTTYGSTRUCT", TIOCTTYGSTRUCT},
13171315
#endif
1316+
#ifdef _POSIX_VDISABLE
1317+
{"_POSIX_VDISABLE", _POSIX_VDISABLE},
1318+
#endif
13181319

13191320
/* sentinel */
13201321
{NULL, 0}

0 commit comments

Comments
 (0)