From 7fb1f0eb81dab52b250b62ca6baa54a2ee6676d3 Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Thu, 9 Feb 2006 21:58:12 +0000 Subject: [PATCH] Build fix for 4.x: don't use pthreads --- benchmarks/iozone/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmarks/iozone/Makefile b/benchmarks/iozone/Makefile index 25c77e99d604..146c7004f769 100644 --- a/benchmarks/iozone/Makefile +++ b/benchmarks/iozone/Makefile @@ -27,10 +27,12 @@ ALL_TARGET= MAN1= iozone.1 PLIST_FILES= bin/iozone -OPTIONS= THREADS "Enable threading (uses pthreads)" on - .include +.if ${OSVERSION} > 500000 +OPTIONS= THREADS "Enable threading (uses pthreads)" on +.endif + .if defined (WITH_THREADS) CFLAGS+= -pthread MAKE_ENV= LDFLAGS=-lpthread