svn commit: r387364 - head/benchmarks/wrk/files
Sergey A. Osokin
osa at FreeBSD.org
Sun May 24 23:47:57 UTC 2015
Author: osa
Date: Sun May 24 23:47:56 2015
New Revision: 387364
URL: https://svnweb.freebsd.org/changeset/ports/387364
Log:
Try to fix undefined reference to `__sync_fetch_and_add_8' and
`__sync_val_compare_and_swap_8' for FreeBSD[8|9].
Added:
head/benchmarks/wrk/files/patch-src-stats.h (contents, props changed)
Added: head/benchmarks/wrk/files/patch-src-stats.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/benchmarks/wrk/files/patch-src-stats.h Sun May 24 23:47:56 2015 (r387364)
@@ -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>
+
More information about the svn-ports-all
mailing list