--- nh343/sys/share/ioctl.c~ORIG 2003-12-07 17:39:13 +++ nh343/sys/share/ioctl.c 2023-02-19 11:14:01 @@ -40,7 +40,7 @@ # ifdef POSIX_TYPES #include struct termios termio; -# if defined(BSD) || defined(_AIX32) +# if defined(BSD) || defined(_AIX32) || defined(__APPLE__) # if defined(_AIX32) && !defined(_ALL_SOURCE) # define _ALL_SOURCE # endif