[PATCH:x11proto] Bug 31132: Xarch.h needs to include <sys/types.h> on Solaris 10

Alan Coopersmith alan.coopersmith at oracle.com
Sun Nov 21 12:10:31 PST 2010


Workaround older Solaris releases using types from <sys/types.h> in
<sys/byteorder.h> and not including it directly.
(That was fixed in OpenSolaris/Solaris 11 as part of:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4483139 )

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 Xarch.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Xarch.h b/Xarch.h
index 58fb9a5..f80c580 100644
--- a/Xarch.h
+++ b/Xarch.h
@@ -40,6 +40,7 @@
 # else
 
 #  if defined(SVR4) || defined(__SVR4)
+#   include <sys/types.h>
 #   include <sys/byteorder.h>
 #  elif defined(CSRG_BASED)
 #   if defined(__NetBSD__) || defined(__OpenBSD__)
-- 
1.7.3.2



More information about the xorg-devel mailing list