svn commit: r441922 - branches/2017Q2/audio/musicpd/files

Thomas Zander riggs at FreeBSD.org
Sun May 28 19:17:18 UTC 2017


Author: riggs
Date: Sun May 28 19:17:17 2017
New Revision: 441922
URL: https://svnweb.freebsd.org/changeset/ports/441922

Log:
  MFH: r441921
  
  Fix build on aarch64 (endian detection)
  
  Submitted by:	theraven (via mail)
  
  Approved by:	ports-secteam (build fix blanket)

Added:
  branches/2017Q2/audio/musicpd/files/patch-src_system_ByteOrder.hxx
     - copied unchanged from r441921, head/audio/musicpd/files/patch-src_system_ByteOrder.hxx
Modified:
Directory Properties:
  branches/2017Q2/   (props changed)

Copied: branches/2017Q2/audio/musicpd/files/patch-src_system_ByteOrder.hxx (from r441921, head/audio/musicpd/files/patch-src_system_ByteOrder.hxx)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2017Q2/audio/musicpd/files/patch-src_system_ByteOrder.hxx	Sun May 28 19:17:17 2017	(r441922, copy of r441921, head/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


More information about the svn-ports-all mailing list