openbsd-ports/devel/boost/patches/patch-boost_detail_endian_hpp
landry 4f93631615 Update to boost 1.42, fixes regressions in gzip module introduced in
1.41. Tested without fallout in a bulk build by stephan@, thanks!
Endianess fixes from kili@, mark as NO_REGRESS as regression suite
changed a lot since old previous 1.34 version.
Remove deanna@ from MAINTAINER has she agreed not having time for it atm.
This port doesn't honour CFLAGS but this will be dealt separately.
2010-04-21 09:26:58 +00:00

20 lines
630 B
Plaintext

$OpenBSD: patch-boost_detail_endian_hpp,v 1.3 2010/04/21 09:26:58 landry Exp $
--- boost/detail/endian.hpp.orig Wed Apr 21 09:36:53 2010
+++ boost/detail/endian.hpp Wed Apr 21 09:42:41 2010
@@ -65,6 +65,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