freebsd-ports/multimedia/xbmc/files/patch-clang
Philippe Audeoud 689d87a375 - Update to 13.0 beta 1
PR:		ports/187350
Submitted by:	maintainer
2014-03-10 14:01:13 +00:00

32 lines
824 B
Text

diff --git lib/cpluff/configure.ac lib/cpluff/configure.ac
index bb69d19a..4316766 100644
--- lib/cpluff/configure.ac
+++ lib/cpluff/configure.ac
@@ -109,12 +109,12 @@ if test "$enable_threads" != no; then
AC_LINK_IFELSE(
[AC_LANG_SOURCE([#include <pthread.h>
-int main(int argc, char **argv) {
+[int main(int argc, char **argv) {
pthread_mutex_t mutex;
pthread_mutex_init(&mutex, NULL);
return 0;
-}
+}]
])], [AC_MSG_RESULT([yes])
cp_threads=Posix], AC_MSG_RESULT([no]))
fi
@@ -126,10 +126,10 @@ cp_threads=Posix], AC_MSG_RESULT([no]))
AC_LINK_IFELSE(
[AC_LANG_SOURCE([#include <windows.h>
-int main(int argc, char **argv) {
+[int main(int argc, char **argv) {
CreateMutex(NULL, FALSE, NULL);
return 0;
-}
+}]
])], [AC_MSG_RESULT([yes])
cp_threads=Windows], AC_MSG_RESULT([no]))
fi