zsh: update to 5.7.1 & native build
[unleashed-userland.git] / components / filebench / patches / patch-misc.c.patch
blobb20a2aaa51bb6f66fd3d12d94b899ff34abc4aff
1 $NetBSD: patch-misc.c,v 1.1.1.1 2012/07/02 17:43:16 asau Exp $
3 --- misc.c.orig 2011-09-06 17:17:45.000000000 +0000
4 +++ misc.c
5 @@ -312,13 +312,13 @@ fatal:
7 } else if (filebench_shm->shm_debug_level > LOG_INFO) {
8 if (level < LOG_INFO)
9 -#ifdef HAVE_PROC_PID_STAT
10 +#if HAVE_GETTID
11 (void) fprintf(stderr, "%5d: ", (int)gettid());
12 #else
13 (void) fprintf(stderr, "%5d: ", (int)my_pid);
14 #endif
15 else
16 -#ifdef HAVE_PROC_PID_STAT
17 +#if HAVE_GETTID
18 (void) fprintf(stdout, "%5d: ", (int)gettid());
19 #else
20 (void) fprintf(stdout, "%5d: ", (int)my_pid);