diff options
-rw-r--r-- | h/sysdep.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <signal.h> #include <syslog.h> #ifdef HAVE_UNISTD_H +#ifndef __USE_XOPEN_EXTENDED #ifdef HAVE_GETSID #define __USE_XOPEN_EXTENDED #endif @@ -28,6 +29,9 @@ #ifdef __USE_XOPEN_EXTENDED #undef __USE_XOPEN_EXTENDED #endif +#else +#include <unistd.h> +#endif #endif #include <sys/types.h> #include <sys/stat.h> |