mirror of https://github.com/python/cpython
gh-85984: Add _POSIX_VDISABLE from unistd.h to termios module. (#114985)
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
This commit is contained in:
parent
aeffc7f895
commit
bf75f1b147
|
@ -0,0 +1 @@
|
|||
Added ``_POSIX_VDISABLE`` from C's ``<unistd.h>`` to :mod:`termios`.
|
|
@ -27,9 +27,7 @@
|
|||
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
#if defined(__sun) && defined(__SVR4)
|
||||
# include <unistd.h> // ioctl()
|
||||
#endif
|
||||
#include <unistd.h> // _POSIX_VDISABLE
|
||||
|
||||
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
|
||||
* MDTR, MRI, and MRTS (apparently used internally by some things
|
||||
|
@ -1315,6 +1313,9 @@ static struct constant {
|
|||
#ifdef TIOCTTYGSTRUCT
|
||||
{"TIOCTTYGSTRUCT", TIOCTTYGSTRUCT},
|
||||
#endif
|
||||
#ifdef _POSIX_VDISABLE
|
||||
{"_POSIX_VDISABLE", _POSIX_VDISABLE},
|
||||
#endif
|
||||
|
||||
/* sentinel */
|
||||
{NULL, 0}
|
||||
|
|
Loading…
Reference in New Issue