aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/iozone/files
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2012-06-19 17:43:25 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2012-06-19 17:43:25 +0000
commit83bc131ec156b6d0ae945f9310352a37923d7052 (patch)
treeaa1aeec175ba649c2dd3dea03840b220daa7eadb /benchmarks/iozone/files
parentabb9ab5e87dad08b62f528036a48bbd4deb07bec (diff)
downloadports-83bc131ec156b6d0ae945f9310352a37923d7052.tar.gz
ports-83bc131ec156b6d0ae945f9310352a37923d7052.zip
Notes
Diffstat (limited to 'benchmarks/iozone/files')
-rw-r--r--benchmarks/iozone/files/patch-libasync.c20
-rw-r--r--benchmarks/iozone/files/patch-libbif.c11
2 files changed, 31 insertions, 0 deletions
diff --git a/benchmarks/iozone/files/patch-libasync.c b/benchmarks/iozone/files/patch-libasync.c
new file mode 100644
index 000000000000..e0779a5d247c
--- /dev/null
+++ b/benchmarks/iozone/files/patch-libasync.c
@@ -0,0 +1,20 @@
+--- libasync.c 2012-05-14 23:13:13.000000000 -0700
++++ libasync.c 2012-05-14 23:14:27.000000000 -0700
+@@ -109,7 +109,7 @@
+ #include <sys/fs/vx_ioctl.h>
+ #endif
+
+-#if defined(OSFV5) || defined(linux)
++#if defined(OSFV5) || defined(linux) || defined(__FreeBSD__)
+ #include <string.h>
+ #endif
+
+@@ -119,7 +119,7 @@
+ #include <stdlib.h>
+ #endif
+
+-#if ((defined(solaris) && defined(__LP64__)) || defined(__s390x__))
++#if ((defined(solaris) && defined(__LP64__)) || defined(__s390x__)) || defined(__FreeBSD__)
+ /* If we are building for 64-bit Solaris, all functions that return pointers
+ * must be declared before they are used; otherwise the compiler will assume
+ * that they return ints and the top 32 bits of the pointer will be lost,
diff --git a/benchmarks/iozone/files/patch-libbif.c b/benchmarks/iozone/files/patch-libbif.c
new file mode 100644
index 000000000000..9baf918fff6f
--- /dev/null
+++ b/benchmarks/iozone/files/patch-libbif.c
@@ -0,0 +1,11 @@
+--- libbif.c 2012-05-14 23:13:03.000000000 -0700
++++ libbif.c 2012-05-14 23:13:42.000000000 -0700
+@@ -27,7 +27,7 @@
+ #include <string.h>
+ #endif
+
+-#if defined(linux) || defined(__DragonFly__) || defined(macosx)
++#if defined(linux) || defined(__DragonFly__) || defined(macosx) || defined(__FreeBSD__)
+ #include <unistd.h>
+ #include <stdlib.h>
+ #endif