<pty.h>: linux only

not only Apple but also other OSes except Linux uses <util.h>.
for details, see
https://www.gnu.org/software/gnulib/manual/html_node/pty_002eh.html
This commit is contained in:
SASANO Takayoshi 2021-10-24 13:17:47 +09:00
parent 186c61a128
commit a9fbbc1d2c
1 changed files with 3 additions and 3 deletions

View File

@ -32,10 +32,10 @@
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#if defined(__APPLE__)
#include <util.h>
#else
#if defined(__linux__)
#include <pty.h>
#else
#include <util.h>
#endif