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