Opened 11 years ago
Closed 10 years ago
#6013 closed Patches (fixed)
endian.hpp header patch to utilize OpenBSD's endian header
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Boost 1.48.0 | Component: | config |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
The attached patch for Boost's endian.hpp header is to utilize OpenBSD's endian header.
Attachments (3)
Change History (18)
by , 11 years ago
Attachment: | patch-boost_detail_endian_hpp added |
---|
comment:1 by , 11 years ago
comment:3 by , 11 years ago
Component: | None → asio |
---|---|
Owner: | set to |
comment:6 by , 10 years ago
I recently tried building something using Boost on NetBSD/arm using boost 1.52, and it failed because it couldn't detect the endianness properly. I see that in the trunk there is testing against ARMEL and ARMEB, but the proper way to fix it is to use sys/endian.h (or, I guess, machine/endian.h under OpenBSD).
The updated patch should be correct for NetBSD, FreeBSD, OpenBSD, and DragonFlyBSD.
comment:9 by , 10 years ago
riz:
Actually looking at that diff again there is a mistake in it.
The line.. "+# define BOOST_BYTE_ORDER BYTE_ORDER" should be using _BYTE_ORDER not BYTE_ORDER.
by , 10 years ago
Attachment: | boost_endian.diff added |
---|
Updated BSD patch for boost/detail/endian.hpp
comment:11 by , 10 years ago
Owner: | changed from | to
---|
comment:13 by , 10 years ago
Component: | asio → config |
---|
Which Boost library (component) are you using that needs this patch?