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:
Claudio Matsuoka 2015-05-11 08:18:12 -03:00
parent a2e8c76114
commit 9a50c1795b

@ -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