pkgsrc/benchmarks/filebench/patches/patch-filebench.h
asau 3aaa1fc604 Import Filebench 1.4.9.1 as benchmarks/filebench.
Filebench is a file system and storage benchmark that allows
to generate a high variety of workloads. It employs extensive
Workload Model Language (WML) for detailed workload specification.

Features

 * Extensive Workload Model Language (WML) for workload specification
 * Includes popular pre-defined workloads: webserver, fileserver,
   varmail, etc.
 * Reports throughput and latency histograms
2012-07-02 17:43:16 +00:00

18 lines
484 B
C

$NetBSD: patch-filebench.h,v 1.1.1.1 2012/07/02 17:43:16 asau Exp $
--- filebench.h.orig 2011-09-06 17:17:45.000000000 +0000
+++ filebench.h
@@ -160,10 +160,12 @@ void filebench_plugin_funcvecinit(void);
#define FILEBENCH_RANDMAX FILEBENCH_RANDMAX32
#endif
-#ifdef HAVE_PROC_PID_STAT
+#if defined(HAVE_GETTID)
+#if defined(HAVE_ASM_UNISTD_H)
#include <asm/unistd.h>
#define gettid() syscall(__NR_gettid)
#endif
+#endif
#ifndef HAVE_SIGIGNORE
/* No sigignore on FreeBSD */