ports/benchmarks/libmicro/files/patch-libmicro.c
Mathieu Arnold 56bf85096c Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-27 15:09:11 +00:00

17 lines
530 B
C

--- libmicro.c.orig 2011-05-11 00:58:23 UTC
+++ libmicro.c
@@ -859,10 +859,14 @@ barrier_create(int hwm, int datasize)
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);