xine-lib/xine-lib-1.1.5-pthread-check.patch
Ville Skyttä 3d651b1200 * Wed Apr 11 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.1.5-1
- 1.1.5.
- Include GSM 06.10 decoder (#228186).
- Re-enable CACA support.
2007-04-11 21:36:29 +00:00

25 lines
861 B
Diff

Upstream changeset 8743:defc4f072bde + additional fix in fakethread().
diff -r d1512848e87b -r defc4f072bde m4/pthreads.m4
--- a/m4/pthreads.m4 Tue Apr 10 17:08:22 2007 +0100
+++ b/m4/pthreads.m4 Wed Apr 11 17:32:13 2007 +0200
@@ -36,11 +36,15 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
[ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $cc_cv_werror $PTHREAD_CFLAGS"
+
LIBS="$LIBS $PTHREAD_LIBS"
- AC_COMPILE_IFELSE(
+ AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
- [[#include <pthread.h>]],
- [[pthread_create(NULL, NULL, NULL, NULL);]]
+ [[#include <pthread.h>
+ void *fakethread(void *arg) { return NULL; }
+ pthread_t fakevariable;
+ ]],
+ [[pthread_create(&fakevariable, NULL, &fakethread, NULL);]]
)],
[cc_cv_pthreads=yes],
[cc_cv_pthreads=no])