freebsd-ports/benchmarks/iorate/files/patch-ior__mach.h
Mathieu Arnold 56bf85096c Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-27 15:09:11 +00:00

36 lines
1,003 B
C

--- 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>