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

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@oracle.com>
Acked-by: Pat Kane <pekane52@gmail.com>
This commit is contained in:
Alan Coopersmith 2010-11-21 09:48:52 -08:00
parent 5d3428de97
commit fe7b269fd3

View file

@ -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__)