Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2017 19:17:17 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r441922 - branches/2017Q2/audio/musicpd/files
Message-ID:  <201705281917.v4SJHHeC053170@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705281917.v4SJHHeC053170>