svn commit: r480665 - head/dns/bind9-devel/files
Mathieu Arnold
mat at FreeBSD.org
Tue Sep 25 14:25:51 UTC 2018
Author: mat
Date: Tue Sep 25 14:25:50 2018
New Revision: 480665
URL: https://svnweb.freebsd.org/changeset/ports/480665
Log:
Fix build on i386.
Added:
head/dns/bind9-devel/files/patch-lib_isc_rwlock.c (contents, props changed)
Added: head/dns/bind9-devel/files/patch-lib_isc_rwlock.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/dns/bind9-devel/files/patch-lib_isc_rwlock.c Tue Sep 25 14:25:50 2018 (r480665)
@@ -0,0 +1,15 @@
+--- lib/isc/rwlock.c.orig 2018-09-25 13:20:09 UTC
++++ lib/isc/rwlock.c
+@@ -44,9 +44,11 @@
+ #if defined(_MSC_VER)
+ # include <intrin.h>
+ # define isc_rwlock_pause() YieldProcessor()
+-#elif defined(__x86_64__) || defined(__i386__)
++#elif defined(__x86_64__)
+ # include <immintrin.h>
+ # define isc_rwlock_pause() _mm_pause()
++#elif defined(__i386__)
++# define isc_rwlock_pause() asm("rep; nop")
+ #elif defined(__ia64__)
+ # define isc_rwlock_pause() __asm__ __volatile__ ("hint @pause")
+ #elif defined(__arm__)
More information about the svn-ports-head
mailing list