summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-14 22:08:38 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-14 22:08:38 +0000
commit825b6ae347b3896b8ea38e6021170d45ae3bfd65 (patch)
tree2dd5294680e252a023dac04629fc27a6db4445c0
parentacc0551fb1af1152c1b630ff5e82f023f11751e2 (diff)
downloadxorg-proto-x11proto-825b6ae347b3896b8ea38e6021170d45ae3bfd65.tar.gz
Don't define _XOPEN_SOURCE on SVR4, because it will REMOVE requiredXORG-6_8_99_15
definitions.
-rw-r--r--Xos.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xos.h b/Xos.h
index 2235913..cd41bdd 100644
--- a/Xos.h
+++ b/Xos.h
@@ -60,8 +60,9 @@ in this Software without prior written authorization from The Open Group.
/*
* Make sure _XOPEN_SOURCE is defined before including sys/select.h
* so that we get fds_bits in fd_set instead of __fds_bits
+ * EXCEPT on SVR4, where it REMOVES required typedefs!
*/
-# ifndef _XOPEN_SOURCE
+# if !defined(_XOPEN_SOURCE) && !defined(SVR4)
# define _XOPEN_SOURCE
# include <sys/types.h>
# undef _XOPEN_SOURCE