Commit 5c31783d authored by Jeff Garzik's avatar Jeff Garzik
Browse files

Fixed --with-threads, small 64-bit prob

parent dcd0c664
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
1998-12-15 Jeff Garzik <jgarzik@Pobox.com>
* configure.in: correctly support --without-threads and friends
* gthread/testgthread.c: corrected 64-bitness problem
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com>
* gnode.c glist.c gslist.c: Make sure all
......
......@@ -539,13 +539,13 @@ LIBS_NOT_FOUND_2=". Please choose another thread implementation or
dnl determination of thread implementation
dnl ***************************************
if test x"$with_threads" = x; then
if test "x$with_threads" != xno; then
case $host in
*-*-solaris*)
AC_CHECK_LIB(thread,cond_init,with_threads=solaris)
;;
esac
if test x"$with_threads" = x; then
if test "x$with_threads" != xsolaris; then
AC_CHECK_LIB(pthread,pthread_cond_init,with_threads=posix)
AC_CHECK_LIB(pthreads,pthread_attr_init,with_threads=posix)
AC_CHECK_LIB(nspr21,PRP_NewNakedCondVar,with_threads=nspr)
......@@ -556,10 +556,12 @@ AC_MSG_CHECKING(for thread implementation)
if test x"$with_threads" = x; then
with_threads=none
AC_MSG_RESULT(none available)
AC_MSG_WARN($THREAD_NO_IMPLEMENTATION)
else
AC_MSG_RESULT($with_threads)
fi
AC_MSG_RESULT($with_threads)
dnl determination of G_THREAD_LIBS
dnl ******************************
......
......@@ -173,7 +173,7 @@ test_private ()
gpointer threads[TEST_PRIVATE_THREADS];
for (i = 0; i < TEST_PRIVATE_THREADS; i++)
{
threads[i] = new_thread (test_private_func, (gpointer) i);
threads[i] = new_thread (test_private_func, GINT_TO_POINTER(i));
}
for (i = 0; i < TEST_PRIVATE_THREADS; i++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment