summaryrefslogtreecommitdiff
path: root/benchmarks/libmicro/files/patch-mutex.c
blob: 8ff00c19769533f49bd69a718d073640d0ef00f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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++;