Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libjulius: Fix incompatible types in POSIX threads configure checks #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libjulius/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4532,7 +4532,7 @@ $as_echo_n "checking for linking POSIX threaded process... " >&6; }
int
main ()
{
pthread_equal(NULL,NULL);
pthread_equal(pthread_self(),pthread_self());
;
return 0;
}
Expand Down Expand Up @@ -4564,7 +4564,7 @@ $as_echo_n "checking for POSIX thread library in -lpthread... " >&6; }
int
main ()
{
pthread_equal(NULL,NULL);
pthread_equal(pthread_self(),pthread_self());
;
return 0;
}
Expand Down
6 changes: 4 additions & 2 deletions libjulius/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ if test "$want_pthread" = yes; then
AC_MSG_CHECKING([for linking POSIX threaded process])
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -pthread"
AC_TRY_LINK([#include <pthread.h>],[pthread_equal(NULL,NULL);],
AC_TRY_LINK([#include <pthread.h>],
[pthread_equal(pthread_self(),pthread_self());],
use_pthread=yes
AC_DEFINE(HAVE_PTHREAD)
CPPFLAGS="$CPPFLAGS -pthread",
Expand All @@ -388,7 +389,8 @@ if test "$want_pthread" = yes; then
AC_MSG_CHECKING([for POSIX thread library in -lpthread])
ac_save_LIBS_p="$LIBS"
LIBS="$LIBS -lpthread"
AC_TRY_LINK([#include <pthread.h>],[pthread_equal(NULL,NULL);],
AC_TRY_LINK([#include <pthread.h>],
[pthread_equal(pthread_self(),pthread_self());],
use_pthread=yes
AC_DEFINE(HAVE_PTHREAD),
use_pthread=no
Expand Down