FreeBSD Bugzilla – Attachment 221108 Details for
Bug 252290
misc/thrill: fix build on big-endian architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
thrill.patch (text/plain), 1.36 KB, created by
Piotr Kubaj
on 2020-12-30 15:46:31 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2020-12-30 15:46:31 UTC
Size:
1.36 KB
patch
obsolete
>Index: files/patch-extlib_tlx_tlx_math_bswap.hpp >=================================================================== >--- files/patch-extlib_tlx_tlx_math_bswap.hpp (revision 559423) >+++ files/patch-extlib_tlx_tlx_math_bswap.hpp (working copy) >@@ -1,6 +1,17 @@ >---- extlib/tlx/tlx/math/bswap.hpp.orig 2020-12-12 21:48:10 UTC >+--- extlib/tlx/tlx/math/bswap.hpp.orig 2019-10-28 13:53:21 UTC > +++ extlib/tlx/tlx/math/bswap.hpp >-@@ -35,9 +35,11 @@ static inline uint16_t bswap16_generic(const uint16_t& >+@@ -19,6 +19,10 @@ >+ #include <cstdlib> >+ #endif >+ >++#ifdef __FreeBSD__ >++#include <sys/endian.h> >++#endif >++ >+ namespace tlx { >+ >+ //! \addtogroup tlx_math >+@@ -35,9 +39,11 @@ static inline uint16_t bswap16_generic(const uint16_t& > #if defined(__GNUC__) || defined(__clang__) > > //! bswap16 - gcc/clang intrinsic >@@ -12,7 +23,7 @@ > > #elif defined(_MSC_VER) > >-@@ -67,9 +69,11 @@ static inline uint32_t bswap32_generic(const uint32_t& >+@@ -67,9 +73,11 @@ static inline uint32_t bswap32_generic(const uint32_t& > #if defined(__GNUC__) || defined(__clang__) > > //! bswap32 - gcc/clang intrinsic >@@ -24,7 +35,7 @@ > > #elif defined(_MSC_VER) > >-@@ -105,9 +109,11 @@ static inline uint64_t bswap64_generic(const uint64_t& >+@@ -105,9 +113,11 @@ static inline uint64_t bswap64_generic(const uint64_t& > #if defined(__GNUC__) || defined(__clang__) > > //! bswap64 - gcc/clang intrinsic
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252290
: 221108