Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2018 14:25:50 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480665 - head/dns/bind9-devel/files
Message-ID:  <201809251425.w8PEPoQ6065124@repo.freebsd.org>

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



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