summaryrefslogtreecommitdiff
path: root/benchmarks/libmicro/files/patch-libmicro.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/libmicro/files/patch-libmicro.c')
-rw-r--r--benchmarks/libmicro/files/patch-libmicro.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmarks/libmicro/files/patch-libmicro.c b/benchmarks/libmicro/files/patch-libmicro.c
new file mode 100644
index 000000000000..e91108900451
--- /dev/null
+++ b/benchmarks/libmicro/files/patch-libmicro.c
@@ -0,0 +1,17 @@
+--- libmicro.c.orig Sat Aug 6 14:15:04 2005
++++ libmicro.c Sat Aug 6 14:15:52 2005
+@@ -854,10 +854,14 @@
+ b->ba_flag = 0;
+
+ (void) pthread_mutexattr_init(&attr);
++#if !defined(__FreeBSD__)
+ (void) pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
++#endif
+
+ (void) pthread_condattr_init(&cattr);
++#if !defined(__FreeBSD__)
+ (void) pthread_condattr_setpshared(&cattr, PTHREAD_PROCESS_SHARED);
++#endif
+
+ (void) pthread_mutex_init(&b->ba_lock, &attr);
+ (void) pthread_cond_init(&b->ba_cv, &cattr);