Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Apr 2016 16:30:03 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r414183 - head/sysutils/afflib/files
Message-ID:  <201604281630.u3SGU3BU091191@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Thu Apr 28 16:30:03 2016
New Revision: 414183
URL: https://svnweb.freebsd.org/changeset/ports/414183

Log:
  Use bswap* from sys/endian.h instead of defining own versions
  This fixes build with libc++ 3.8.0
  
  PR:		209100
  Submitted by:	dim@

Added:
  head/sysutils/afflib/files/
  head/sysutils/afflib/files/patch-lib_qemu_bswap.h   (contents, props changed)

Added: head/sysutils/afflib/files/patch-lib_qemu_bswap.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/afflib/files/patch-lib_qemu_bswap.h	Thu Apr 28 16:30:03 2016	(r414183)
@@ -0,0 +1,20 @@
+--- lib/qemu/bswap.h.orig	2014-11-08 06:32:35 UTC
++++ lib/qemu/bswap.h
+@@ -5,6 +5,9 @@
+ 
+ #include <inttypes.h>
+ 
++#ifdef __FreeBSD__
++#include <sys/endian.h>
++#else
+ #ifdef HAVE_BYTESWAP_H
+ #include <byteswap.h>
+ #else
+@@ -57,6 +60,7 @@ static inline uint64_t bswap64(uint64_t 
+ {
+     return bswap_64(x);
+ }
++#endif
+ 
+ static inline void bswap16s(uint16_t *s)
+ {



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