summaryrefslogtreecommitdiff
path: root/benchmarks/iorate/files/patch-ior__mach.h
blob: 426e44ce2d029ec8ded3d7c1cd8be6bc9072c535 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- ior_mach.h.orig	2011-11-03 15:50:06 UTC
+++ ior_mach.h
@@ -142,7 +142,6 @@
 #define	IOR_MAX_SEEK		(HUGE)(4398046511104LL)	/* 4 TB */
 #endif
 
-
 /************************  OS is LINUX?  ************************/
 /*
  * Since RedHat uses their own version, check for it
@@ -203,6 +202,16 @@
 #endif
 
 
+/************************  OS is FreeBSD?  ***********************/
+#ifdef  __FreeBSD__
+#include <unistd.h>
+#ifdef  IOR_LARGE_FILES
+#define HUGE                    __off_t
+#define IOR_SEEK                lseek
+#define IOR_MAX_SEEK            (HUGE)(4398046511104LL) /* 4 TB */
+#endif
+#endif
+
 /************************  OS is unknown?  ************************/
 /*
  * OK, not a known type, or did not set up large file support
@@ -240,7 +249,7 @@
 /*
  * process exit status
  */
-#if	defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ )
+#if	defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ ) || defined(__FreeBSD__)
 #include <sys/wait.h>
 #else
 #include <wait.h>