summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2016-06-22 21:54:12 +0000
committermi <mi@FreeBSD.org>2016-06-22 21:54:12 +0000
commitf44d4b6ea1ac5c6bc1d30efc55efec92b1faf1d9 (patch)
tree112c41587e00d6bdd21f043e3d92e4aa0483f2c0
parentd600d8d9a55b1ac95bed1f30f10a07b9f2b78170 (diff)
downloadFreeBSD-ports-f44d4b6ea1ac5c6bc1d30efc55efec92b1faf1d9.zip
FreeBSD-ports-f44d4b6ea1ac5c6bc1d30efc55efec92b1faf1d9.tar.gz
Fix a problem with the new patch. It is a no-op on FreeBSD,
but it prevented compillation on 32-bit Linux. This is the version the author has just incorporated into his source.
-rw-r--r--benchmarks/iozone/files/patch-libasync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/iozone/files/patch-libasync.c b/benchmarks/iozone/files/patch-libasync.c
index 2e3dda4..e81ed4a 100644
--- a/benchmarks/iozone/files/patch-libasync.c
+++ b/benchmarks/iozone/files/patch-libasync.c
@@ -37,13 +37,13 @@ and the like) and other warnings.
+# endif
#endif
#if defined(OSFV5)
-@@ -151,13 +164,13 @@
+@@ -151,13 +164,14 @@
* this structure type.
*/
-char version[] = "Libasync Version $Revision: 3.25 $";
+static const char version[] = "Libasync Version $Revision: 3.25 $";
struct cache_ent {
- struct aiocb myaiocb; /* For use in small file mode */
+- struct aiocb myaiocb; /* For use in small file mode */
#ifdef _LARGEFILE64_SOURCE
#if defined(__CrayX1__)
- aiocb64_t myaiocb64; /* For use in large file mode */
@@ -53,6 +53,8 @@ and the like) and other warnings.
-#endif
+ struct aiocb64 myaiocb; /* For use in large file mode */
+#endif
++#else
++ struct aiocb myaiocb;
#endif
long long fd; /* File descriptor */
@@ -192,6 +205,6 @@
OpenPOWER on IntegriCloud