Path: blob/main/benchmarks/iorate/files/patch-ior__mach.h
16461 views
--- ior_mach.h.orig 2011-11-03 15:50:06 UTC1+++ ior_mach.h2@@ -142,7 +142,6 @@3#define IOR_MAX_SEEK (HUGE)(4398046511104LL) /* 4 TB */4#endif56-7/************************ OS is LINUX? ************************/8/*9* Since RedHat uses their own version, check for it10@@ -203,6 +202,16 @@11#endif121314+/************************ OS is FreeBSD? ***********************/15+#ifdef __FreeBSD__16+#include <unistd.h>17+#ifdef IOR_LARGE_FILES18+#define HUGE __off_t19+#define IOR_SEEK lseek20+#define IOR_MAX_SEEK (HUGE)(4398046511104LL) /* 4 TB */21+#endif22+#endif23+24/************************ OS is unknown? ************************/25/*26* OK, not a known type, or did not set up large file support27@@ -240,7 +249,7 @@28/*29* process exit status30*/31-#if defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ )32+#if defined( _AIX ) || defined( HPUX ) || defined( __CYGWIN__ ) || defined(__FreeBSD__)33#include <sys/wait.h>34#else35#include <wait.h>363738