aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-06-20 01:43:25 +0800
committerrm <rm@FreeBSD.org>2012-06-20 01:43:25 +0800
commitf3566c90160390e664f1745e6655d001628fffc1 (patch)
treeff3fb827ac3dc16066126e2507f63fb9888ce09c /benchmarks
parent55aa3cf70cc354290a7d4eea482fb761d0d7caff (diff)
downloadfreebsd-ports-gnome-f3566c90160390e664f1745e6655d001628fffc1.tar.gz
freebsd-ports-gnome-f3566c90160390e664f1745e6655d001628fffc1.tar.zst
freebsd-ports-gnome-f3566c90160390e664f1745e6655d001628fffc1.zip
- add couple of patches to fix build warnings
- do not bumping PORTREVISION, because it's non-functional change PR: 167943 Submitted by: Garrett Cooper <yanegomi at gmail dot com> Approved by: chifeng <chifeng at gmail dot com> (maintainer)
Diffstat (limited to 'benchmarks')
-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