diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2015-05-24 23:47:56 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2015-05-24 23:47:56 +0000 |
commit | 41f5c927c60a2f8ccd662bca17a45832a49f9a47 (patch) | |
tree | bcd45eb96f24818b03e9bfe20ce118951f730c41 | |
parent | Fix configure with mono 4 (diff) |
Try to fix undefined reference to `__sync_fetch_and_add_8' and
`__sync_val_compare_and_swap_8' for FreeBSD[8|9].
Notes
Notes:
svn path=/head/; revision=387364
-rw-r--r-- | benchmarks/wrk/files/patch-src-stats.h | 14 |
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> + |