Also test for MacOS X to include Unix headers
MacOS X doesn't define unix or __unix__, so also check for __APPLE__ to include unistd.h (needed by getopt()). Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
a2e8c76114
commit
9a50c1795b
2
figlet.c
2
figlet.c
@ -66,7 +66,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h> /* Needed for get_columns */
|
||||
|
||||
#ifdef unix
|
||||
#if defined(unix) || defined(__unix__) || defined(__APPLE__)
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h> /* Needed for get_columns */
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user