diff options
author | Karl Ramm <kcr@1ts.org> | 2009-08-09 18:42:31 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2009-08-09 18:42:31 +0000 |
commit | 1bf07a2719d3a1aa24e07921d455489e1f3e435c (patch) | |
tree | 480c1a460ed29382e197fe53faf02f11a20ec105 /h | |
parent | a27b866d0ee033e95b85d1bb6d79282e225abfc3 (diff) |
if __USE_XOPEN_EXTENDED is already defined, there was an annoying message;
also, we probably shouldn't undefine it
Diffstat (limited to 'h')
-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> |