summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-08-09 18:42:31 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-08-09 18:42:31 +0000
commit1bf07a2719d3a1aa24e07921d455489e1f3e435c (patch)
tree480c1a460ed29382e197fe53faf02f11a20ec105 /h
parenta27b866d0ee033e95b85d1bb6d79282e225abfc3 (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/h/sysdep.h b/h/sysdep.h
index f6943ba..368ba5a 100644
--- a/h/sysdep.h
+++ b/h/sysdep.h
@@ -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>