diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-12-13 22:28:51 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-12-13 22:28:51 +0800 |
commit | 271a84d2df7bc9b983fe2fabe1615d01202d429b (patch) | |
tree | 9ffbca8e60cdd119f13ccd6a79d1c0ad85c587cb /benchmarks/fio | |
parent | 38f1e9adeda0ca1d740f122e5ee943e45a23e1d3 (diff) | |
download | freebsd-ports-gnome-271a84d2df7bc9b983fe2fabe1615d01202d429b.tar.gz freebsd-ports-gnome-271a84d2df7bc9b983fe2fabe1615d01202d429b.tar.zst freebsd-ports-gnome-271a84d2df7bc9b983fe2fabe1615d01202d429b.zip |
benchmarks/fio: use pshared mutex on 11.0+
PR: 215254
Approved by: bapt (maintainer)
Diffstat (limited to 'benchmarks/fio')
-rw-r--r-- | benchmarks/fio/Makefile | 1 | ||||
-rw-r--r-- | benchmarks/fio/files/patch-os_os-freebsd.h | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/benchmarks/fio/Makefile b/benchmarks/fio/Makefile index 0a5bd50c2c9c..9defea0d429b 100644 --- a/benchmarks/fio/Makefile +++ b/benchmarks/fio/Makefile @@ -3,6 +3,7 @@ PORTNAME= fio PORTVERSION= 2.15 +PORTREVISION= 1 CATEGORIES= benchmarks MASTER_SITES= http://brick.kernel.dk/snaps/ diff --git a/benchmarks/fio/files/patch-os_os-freebsd.h b/benchmarks/fio/files/patch-os_os-freebsd.h new file mode 100644 index 000000000000..7fd93ab3db1d --- /dev/null +++ b/benchmarks/fio/files/patch-os_os-freebsd.h @@ -0,0 +1,12 @@ +--- os/os-freebsd.h.orig 2016-10-25 18:38:13 UTC ++++ os/os-freebsd.h +@@ -22,6 +22,9 @@ + #define FIO_HAVE_TRIM + #define FIO_HAVE_GETTID + #define FIO_HAVE_CPU_AFFINITY ++#if _POSIX_THREAD_PROCESS_SHARED > 0 ++#define FIO_HAVE_PSHARED_MUTEX ++#endif + + #define OS_MAP_ANON MAP_ANON + |