From 0f17a23c50e7d899046eb1edca8558abab5e90c2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 28 Aug 2005 09:05:53 +0000 Subject: Add libmicro - a set of portable benchmarks of system calls from opensolaris project. Approved by: perky (mentor) In collaboration with: gnn --- benchmarks/libmicro/files/patch-mutex.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 benchmarks/libmicro/files/patch-mutex.c (limited to 'benchmarks/libmicro/files/patch-mutex.c') diff --git a/benchmarks/libmicro/files/patch-mutex.c b/benchmarks/libmicro/files/patch-mutex.c new file mode 100644 index 000000000000..8ff00c197695 --- /dev/null +++ b/benchmarks/libmicro/files/patch-mutex.c @@ -0,0 +1,14 @@ +--- mutex.c.orig Sat Aug 6 14:17:43 2005 ++++ mutex.c Sat Aug 6 14:18:26 2005 +@@ -125,9 +125,11 @@ + errors++; + } else { + (void) pthread_mutexattr_init(&attr); ++#if !defined(__FreeBSD__) + if (optp) + (void) pthread_mutexattr_setpshared(&attr, + PTHREAD_PROCESS_SHARED); ++#endif + + if (pthread_mutex_init(lock, &attr) != 0) + errors++; -- cgit v1.2.3