diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2023-09-02 18:57:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 18:57:47 (GMT) |
commit | ecc61a6d76ea329e56f98c4af0f24a17ed3b2d6c (patch) | |
tree | b6f267c839d3c1d3f339ab0f0b62f7fea4eb5ca1 /Modules | |
parent | 0e6d582b3b73a88e71cae04327b31a1ee203722c (diff) | |
download | cpython-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.c | 3 |
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 |