]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108765: include <unistd.h> in termios.c on Solaris (#108825)
authorJakub Kulík <Kulikjak@gmail.com>
Sat, 2 Sep 2023 18:57:47 +0000 (20:57 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 18:57:47 +0000 (18:57 +0000)
Modules/termios.c

index a0613837ef9795fd9411408fbfc02f9088c122fc..c779a757e4fa9b5a0dca1f0551f4a33f4764025b 100644 (file)
@@ -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