Skip to content

Commit ecc61a6

Browse files
authored
gh-108765: include <unistd.h> in termios.c on Solaris (#108825)
1 parent 0e6d582 commit ecc61a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/termios.c

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
#include <termios.h>
2929
#include <sys/ioctl.h>
30+
#if defined(__sun) && defined(__SVR4)
31+
# include <unistd.h> // ioctl()
32+
#endif
3033

3134
/* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR,
3235
* MDTR, MRI, and MRTS (apparently used internally by some things

0 commit comments

Comments
 (0)