aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/iorate/files/patch-ior_mach.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/iorate/files/patch-ior_mach.c')
-rw-r--r--benchmarks/iorate/files/patch-ior_mach.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/benchmarks/iorate/files/patch-ior_mach.c b/benchmarks/iorate/files/patch-ior_mach.c
new file mode 100644
index 000000000000..3e4e17e7dd6b
--- /dev/null
+++ b/benchmarks/iorate/files/patch-ior_mach.c
@@ -0,0 +1,40 @@
+--- ior_mach.c_orig 2013-01-27 02:03:38.000000000 +0200
++++ ior_mach.c 2013-01-27 04:52:47.000000000 +0200
+@@ -411,6 +411,10 @@
+ };
+
+ #else
++#if defined(IOR_LARGE_FILES) && defined(__FreeBSD__)
++#define IOR_SET_LOCK_FLAG F_SETLK
++ struct flock d_lock; /* lock command to run */
++#else
+ #ifdef IOR_LARGE_FILES
+ #define IOR_SET_LOCK_FLAG F_SETLK64
+ struct flock64 d_lock; /* lock command to run */
+@@ -418,6 +422,7 @@
+ #define IOR_SET_LOCK_FLAG F_SETLK
+ struct flock d_lock; /* lock command to run */
+ #endif
++#endif
+
+ result = 0; /* all OK so far */
+
+@@ -486,6 +491,10 @@
+ };
+
+ #else
++#if defined(IOR_LARGE_FILES) && defined(__FreeBSD__)
++#define IOR_SET_LOCK_FLAG F_SETLK
++ struct flock d_lock; /* lock command to run */
++#else
+ #ifdef IOR_LARGE_FILES
+ #define IOR_SET_LOCK_FLAG F_SETLK64
+ struct flock64 d_lock; /* lock command to run */
+@@ -493,6 +502,7 @@
+ #define IOR_SET_LOCK_FLAG F_SETLK
+ struct flock d_lock; /* lock command to run */
+ #endif
++#endif
+
+ result = 0; /* all OK so far */
+