aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-09-25 14:25:50 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-09-25 14:25:50 +0000
commiteef8b139b62be785c71a00fc28149a88de376667 (patch)
tree38beb8af1a9f3660ec1e032287086c080dcc1d10 /dns
parent66c73d6ca1d554d30effefe254f62a2d0f9a0a41 (diff)
downloadports-eef8b139b62be785c71a00fc28149a88de376667.tar.gz
ports-eef8b139b62be785c71a00fc28149a88de376667.zip
Fix build on i386.
Notes
Notes: svn path=/head/; revision=480665
Diffstat (limited to 'dns')
-rw-r--r--dns/bind9-devel/files/patch-lib_isc_rwlock.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/dns/bind9-devel/files/patch-lib_isc_rwlock.c b/dns/bind9-devel/files/patch-lib_isc_rwlock.c
new file mode 100644
index 000000000000..7cf430a0a659
--- /dev/null
+++ b/dns/bind9-devel/files/patch-lib_isc_rwlock.c
@@ -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__)