From f0a95f27c043e847a23940534fdfc53e1b3e31a1 Mon Sep 17 00:00:00 2001 From: jcea Date: Sun, 28 Jan 2018 14:00:48 +0100 Subject: bpo-32660: Solaris should support constants like termios' FIONREAD (#5328) --- Misc/NEWS.d/next/Library/2018-01-26-01-26-00.bpo-32660.tVJIWV.rst | 2 ++ Modules/termios.c | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-01-26-01-26-00.bpo-32660.tVJIWV.rst diff --git a/Misc/NEWS.d/next/Library/2018-01-26-01-26-00.bpo-32660.tVJIWV.rst b/Misc/NEWS.d/next/Library/2018-01-26-01-26-00.bpo-32660.tVJIWV.rst new file mode 100644 index 0000000..5b33e1a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-01-26-01-26-00.bpo-32660.tVJIWV.rst @@ -0,0 +1,2 @@ +:mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``, ``FIOCLEX``, +``FIOASYNC`` and ``FIONBIO`` also under Solaris/derivatives. diff --git a/Modules/termios.c b/Modules/termios.c index 6ed4395..b4aa77f 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -8,6 +8,12 @@ #define CTRL(c) ((c)&037) #endif +#if defined(__sun) +/* We could do better. Check issue-32660 */ +#include +#include +#endif + #include #include -- cgit v0.12