gh-108765: include <unistd.h> in termios.c on Solaris (#108825)

This commit is contained in:
Jakub Kulík 2023-09-02 20:57:47 +02:00 committed by GitHub
parent 0e6d582b3b
commit ecc61a6d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View 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