summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJakub KulĂ­k <Kulikjak@gmail.com>2023-09-02 18:57:47 (GMT)
committerGitHub <noreply@github.com>2023-09-02 18:57:47 (GMT)
commitecc61a6d76ea329e56f98c4af0f24a17ed3b2d6c (patch)
treeb6f267c839d3c1d3f339ab0f0b62f7fea4eb5ca1 /Modules
parent0e6d582b3b73a88e71cae04327b31a1ee203722c (diff)
downloadcpython-ecc61a6d76ea329e56f98c4af0f24a17ed3b2d6c.zip
cpython-ecc61a6d76ea329e56f98c4af0f24a17ed3b2d6c.tar.gz
cpython-ecc61a6d76ea329e56f98c4af0f24a17ed3b2d6c.tar.bz2
gh-108765: include <unistd.h> in termios.c on Solaris (#108825)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/termios.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/termios.c b/Modules/termios.c
index a061383..c779a75 100644
--- a/Modules/termios.c
+++ b/Modules/termios.c
@@ -27,6 +27,9 @@
#include <termios.h>
#include <sys/ioctl.h>
+#if defined(__sun) && defined(__SVR4)
+# include <unistd.h> // ioctl()
+#endif
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
* MDTR, MRI, and MRTS (apparently used internally by some things