summaryrefslogtreecommitdiff
path: root/benchmarks/filebench/patches/patch-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/filebench/patches/patch-misc.c')
-rw-r--r--benchmarks/filebench/patches/patch-misc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/benchmarks/filebench/patches/patch-misc.c b/benchmarks/filebench/patches/patch-misc.c
new file mode 100644
index 00000000000..b20a2aaa51b
--- /dev/null
+++ b/benchmarks/filebench/patches/patch-misc.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-misc.c,v 1.1.1.1 2012/07/02 17:43:16 asau Exp $
+
+--- misc.c.orig 2011-09-06 17:17:45.000000000 +0000
++++ misc.c
+@@ -312,13 +312,13 @@ fatal:
+
+ } else if (filebench_shm->shm_debug_level > LOG_INFO) {
+ if (level < LOG_INFO)
+-#ifdef HAVE_PROC_PID_STAT
++#if HAVE_GETTID
+ (void) fprintf(stderr, "%5d: ", (int)gettid());
+ #else
+ (void) fprintf(stderr, "%5d: ", (int)my_pid);
+ #endif
+ else
+-#ifdef HAVE_PROC_PID_STAT
++#if HAVE_GETTID
+ (void) fprintf(stdout, "%5d: ", (int)gettid());
+ #else
+ (void) fprintf(stdout, "%5d: ", (int)my_pid);