aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2015-05-25 07:47:56 +0800
committerosa <osa@FreeBSD.org>2015-05-25 07:47:56 +0800
commit67f636b816a773633222820d0593cfffcaa3d51c (patch)
treebcd45eb96f24818b03e9bfe20ce118951f730c41 /benchmarks
parent6702b8d96efa2625a74ce497978dcd7c832ed158 (diff)
downloadfreebsd-ports-gnome-67f636b816a773633222820d0593cfffcaa3d51c.tar.gz
freebsd-ports-gnome-67f636b816a773633222820d0593cfffcaa3d51c.tar.zst
freebsd-ports-gnome-67f636b816a773633222820d0593cfffcaa3d51c.zip
Try to fix undefined reference to `__sync_fetch_and_add_8' and
`__sync_val_compare_and_swap_8' for FreeBSD[8|9].
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/wrk/files/patch-src-stats.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/wrk/files/patch-src-stats.h b/benchmarks/wrk/files/patch-src-stats.h
new file mode 100644
index 000000000000..57c543c609e8
--- /dev/null
+++ b/benchmarks/wrk/files/patch-src-stats.h
@@ -0,0 +1,14 @@
+--- src/stats.h.orig 2015-05-25 02:43:07.925981000 +0300
++++ src/stats.h 2015-05-25 02:43:18.075337000 +0300
+@@ -1,6 +1,11 @@
+ #ifndef STATS_H
+ #define STATS_H
+
++#if defined(__FreeBSD__)
++#include <sys/types.h>
++#include <machine/atomic.h>
++#endif /* defined(__FreeBSD__) */
++
+ #include <stdbool.h>
+ #include <stdint.h>
+