aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-30 07:07:48 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-30 07:12:42 -0500
commit8d89fb071c24db0800ccc04118ee15ce9c806ac4 (patch)
treee03fc10d091a1dc0ed576c5f3d3e1fffa48571ad
parentff58a2e3cb3cc47c900044011500192d776092fc (diff)
downloadportable-8d89fb071c24db0800ccc04118ee15ce9c806ac4.tar.gz
portable-8d89fb071c24db0800ccc04118ee15ce9c806ac4.tar.bz2
portable-8d89fb071c24db0800ccc04118ee15ce9c806ac4.zip
merge endian definitions between AIX/HP-UX/Solaris
-rw-r--r--include/machine/endian.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/machine/endian.h b/include/machine/endian.h
index 7e59bcd..80b3f9c 100644
--- a/include/machine/endian.h
+++ b/include/machine/endian.h
@@ -19,10 +19,7 @@
19#elif defined(__linux__) 19#elif defined(__linux__)
20#include <endian.h> 20#include <endian.h>
21 21
22#elif defined(__sun) 22#elif defined(__sun) || defined(_AIX) || defined(__hpux)
23#include <arpa/nameser_compat.h>
24
25#elif defined(_AIX)
26#include <sys/types.h> 23#include <sys/types.h>
27#include <arpa/nameser_compat.h> 24#include <arpa/nameser_compat.h>
28 25
@@ -30,9 +27,6 @@
30#include <standards.h> 27#include <standards.h>
31#include <sys/endian.h> 28#include <sys/endian.h>
32 29
33#elif defined(__hpux)
34#include <arpa/nameser_compat.h>
35
36#else 30#else
37#include_next <machine/endian.h> 31#include_next <machine/endian.h>
38 32