svn commit: r414183 - head/sysutils/afflib/files

Antoine Brodin antoine at FreeBSD.org
Thu Apr 28 16:30:05 UTC 2016


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)
+ {


More information about the svn-ports-all mailing list