$OpenBSD: patch-ext_boost_detail_endian_hpp,v 1.3 2014/06/24 21:43:02 jeremy Exp $

Sync with ports/devel/boost/patches/patch-boost_detail_endian_hpp

--- ext/boost/detail/endian.hpp.orig	Thu May 29 05:13:24 2014
+++ ext/boost/detail/endian.hpp	Thu Jun  5 09:02:27 2014
@@ -117,6 +117,15 @@
 
 # define BOOST_LITTLE_ENDIAN
 # define BOOST_BYTE_ORDER 1234
+#elif defined(__OpenBSD__)
+# include <sys/types.h>
+# if (_BYTE_ORDER == _LITTLE_ENDIAN)
+#  define BOOST_LITTLE_ENDIAN
+#  define BOOST_BYTE_ORDER 1234
+# elif (_BYTE_ORDER == _BIG_ENDIAN)
+#  define BOOST_BIG_ENDIAN
+#  define BOOST_BYTE_ORDER 4321
+# endif
 #else
 # error The file boost/detail/endian.hpp needs to be set up for your CPU type.
 #endif
