Boost C++ Libraries: Ticket #1922: endian.hpp may select a wrong endian for NetBSD https://svn.boost.org/trac10/ticket/1922 <p> In &lt;boost/detail/endian.hpp&gt;: </p> <pre class="wiki">#elif defined(_BIG_ENDIAN) # define BOOST_BIG_ENDIAN # define BOOST_BYTE_ORDER 4321 #elif defined(_LITTLE_ENDIAN) # define BOOST_LITTLE_ENDIAN # define BOOST_BYTE_ORDER 1234 </pre><p> But, the system header &lt;sys/endian.h&gt; on NetBSD always defines _LITTLE_ENDIAN, _BIG_ENDIAN and _PDP_ENDIAN. So BOOST_BIG_ENDIAN is defined on little endian platforms. </p> <p> Please change it as follow: </p> <pre class="wiki">#elif defined(_BIG_ENDIAN) &amp;&amp; !defined(_LITTLE_ENDIAN) # define BOOST_BIG_ENDIAN # define BOOST_BYTE_ORDER 4321 #elif defined(_LITTLE_ENDIAN) &amp;&amp; !defined(_BIG_ENDIAN) # define BOOST_LITTLE_ENDIAN # define BOOST_BYTE_ORDER 1234 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1922 Trac 1.4.3 Marshall Clow Wed, 21 May 2008 14:49:15 GMT owner set https://svn.boost.org/trac10/ticket/1922#comment:1 https://svn.boost.org/trac10/ticket/1922#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> </ul> Ticket John Maddock Wed, 21 May 2008 15:41:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1922#comment:2 https://svn.boost.org/trac10/ticket/1922#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Patch applied in revision <a class="missing ticket">#45608</a>. </p> <p> Thanks for the report, John. </p> Ticket Daryle Walker Sat, 12 Jul 2008 06:17:23 GMT <link>https://svn.boost.org/trac10/ticket/1922#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1922#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1922#comment:2" title="Comment 2">johnmaddock</a>: </p> <blockquote class="citation"> <p> Patch applied in revision <a class="missing ticket">#45608</a>. </p> <p> Thanks for the report, John. </p> </blockquote> <p> The proper <a class="wiki" href="https://svn.boost.org/trac10/wiki/WikiFormatting">WikiFormatting</a> for the revision's reference ID is <a class="changeset" href="https://svn.boost.org/trac10/changeset/45608" title="Apply NetBSD fix from issue #1922.">[45608]</a>. You accidentally created a link to a <em>ticket</em> with that number, one that does not exist at the time of this posting. </p> </description> <category>Ticket</category> </item> </channel> </rss>