diff options
-rw-r--r-- | audio/musicpd/Makefile | 1 | ||||
-rw-r--r-- | audio/musicpd/files/patch-src_system_ByteOrder.hxx | 19 |
2 files changed, 19 insertions, 1 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index 5a0056a147cc..5a3195a62104 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -28,7 +28,6 @@ LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/sidplay/builders #Workaround (transient?) link error with libwrap CONFIGURE_ARGS+=--disable-libwrap -BROKEN_aarch64= Does not build: fatal error: 'endian.h' file not found BROKEN_powerpc64= Does not build on powerpc64 PORTDOCS= AUTHORS README.md COPYING NEWS diff --git a/audio/musicpd/files/patch-src_system_ByteOrder.hxx b/audio/musicpd/files/patch-src_system_ByteOrder.hxx new file mode 100644 index 000000000000..770b0e969b8c --- /dev/null +++ b/audio/musicpd/files/patch-src_system_ByteOrder.hxx @@ -0,0 +1,19 @@ +--- src/system/ByteOrder.hxx.orig 2017-05-26 09:10:52 UTC ++++ src/system/ByteOrder.hxx +@@ -34,7 +34,15 @@ + + #include <stdint.h> + +-#if defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__) ++#if defined(__BYTE_ORDER__) ++# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++# define IS_LITTLE_ENDIAN true ++# define IS_BIG_ENDIAN false ++# else ++# define IS_LITTLE_ENDIAN false ++# define IS_BIG_ENDIAN true ++# endif ++#elif defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__) + /* well-known little-endian */ + # define IS_LITTLE_ENDIAN true + # define IS_BIG_ENDIAN false |