From 67bd4810aeecbcf362fa5c2e63a59eed9e1365bb Mon Sep 17 00:00:00 2001 From: Soumendra Ganguly Date: Sun, 4 Feb 2024 02:31:30 +0100 Subject: [PATCH 1/4] Add _POSIX_VDISABLE from unistd.h to termios module. Signed-off-by: Soumendra Ganguly --- Modules/termios.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules/termios.c b/Modules/termios.c index 69dbd88be5fcc2..4635fefb8f3f5a 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -27,9 +27,7 @@ #include #include -#if defined(__sun) && defined(__SVR4) -# include // ioctl() -#endif +#include // _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} From 60c95d48005126d33296446b8f8144b9ce967da1 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sun, 4 Feb 2024 02:28:39 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst diff --git a/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst b/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst new file mode 100644 index 00000000000000..87a2e180feceeb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst @@ -0,0 +1 @@ +Add _POSIX_VDISABLE from unistd.h to termios module. From e70e309a1f199fc96960f431d040ac384e704066 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 11 Feb 2024 02:03:47 -0800 Subject: [PATCH 3/4] ReSTify the NEWS entry. --- .../next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst b/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst index 87a2e180feceeb..a704c7df957b50 100644 --- a/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst +++ b/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst @@ -1 +1 @@ -Add _POSIX_VDISABLE from unistd.h to termios module. +Added ``_POSIX_VDISABLE`` from C's `` to :mod:`termios`. From aa71dc7a36ebbc197c4bca23629418b11bf0cf77 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 11 Feb 2024 02:06:26 -0800 Subject: [PATCH 4/4] fix my news typo. --- .../next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst b/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst index a704c7df957b50..bfa7e676f92306 100644 --- a/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst +++ b/Misc/NEWS.d/next/Library/2024-02-04-02-28-37.gh-issue-85984.NHZVTQ.rst @@ -1 +1 @@ -Added ``_POSIX_VDISABLE`` from C's `` to :mod:`termios`. +Added ``_POSIX_VDISABLE`` from C's ```` to :mod:`termios`.