opnsense-ports/benchmarks/libmicro/files/patch-mutex.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

14 lines
354 B
C

--- 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++;