ports/devel/libqb/files/patch-configure.ac
Vanilla I. Shu 8e5f97bacc Update to 1.0.3.
PR:		227563
Submitted by:	maintainer
2018-05-12 03:24:10 +00:00

15 lines
584 B
Text

Disable check for pthread_spin_lock() since it doesn't support
PTHREAD_PROCESS_SHARED. This causes libqb to fallback gracefully
to using pthread mutexes without having to patch anything.
--- configure.ac.orig 2017-12-21 09:02:11 UTC
+++ configure.ac
@@ -218,7 +218,7 @@ AC_CHECK_FUNCS([alarm clock_gettime \
AX_SAVE_FLAGS
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
-AC_CHECK_FUNCS([pthread_spin_lock pthread_setschedparam \
+AC_CHECK_FUNCS([pthread_setschedparam \
pthread_mutexattr_setpshared \
pthread_condattr_setpshared \
sem_timedwait semtimedop])