From cc7f8896079710aeb11e65020fb68c166dd66f07 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Fri, 12 Mar 1999 15:28:36 +0000 Subject: [PATCH] Test for posix threads first, then for dce threads. 1999-03-12 Sebastian Wilhelmi * configure.in: Test for posix threads first, then for dce threads. * gthread/gthread-posix.c (g_private_get_posix_impl): Fixed typo for DCE implementation. --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ configure.in | 10 +++++----- gthread/ChangeLog | 5 +++++ gthread/gthread-posix.c | 2 +- 11 files changed, 43 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 979bc9b8e..bb9f41d62 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +1999-03-12 Sebastian Wilhelmi + + * configure.in: Test for posix threads first, then for dce threads. + 1999-03-11 Sebastian Wilhelmi * configure.in: Revamped the thread configure stuff. Now dce diff --git a/configure.in b/configure.in index 09fb8ecda..f95ebb8c2 100644 --- a/configure.in +++ b/configure.in @@ -614,16 +614,16 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xsolaris; then fi if test "x$want_threads" = xyes || test "x$want_threads" = xposix \ || test "x$want_threads" = xdce; then - if test "x$have_threads" = xnone; then - AC_EGREP_HEADER([[^a-zA-Z_]pthread_attr_create[^a-zA-Z_]], - pthread.h, - have_threads=dce) - fi if test "x$have_threads" = xnone; then AC_EGREP_HEADER([[^a-zA-Z_]pthread_attr_init[^a-zA-Z_]], pthread.h, have_threads=posix) fi + if test "x$have_threads" = xnone; then + AC_EGREP_HEADER([[^a-zA-Z_]pthread_attr_create[^a-zA-Z_]], + pthread.h, + have_threads=dce) + fi fi if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then if test "x$have_threads" = xnone; then diff --git a/gthread/ChangeLog b/gthread/ChangeLog index d733de78d..3e7c2e614 100644 --- a/gthread/ChangeLog +++ b/gthread/ChangeLog @@ -1,3 +1,8 @@ +1999-03-12 Sebastian Wilhelmi + + * gthread-posix.c (g_private_get_posix_impl): Fixed typo for DCE + implementation. + 1999-03-11 Sebastian Wilhelmi * gthread-posix.c: Now handle both dce and posix threads. They are diff --git a/gthread/gthread-posix.c b/gthread/gthread-posix.c index a18a8b5e2..210b906e7 100644 --- a/gthread/gthread-posix.c +++ b/gthread/gthread-posix.c @@ -188,7 +188,7 @@ g_private_get_posix_impl (GPrivate * private_key) { void* data; posix_check_for_error (pthread_getspecific (*(pthread_key_t *) - private_key, &data); + private_key, &data)); return data; } #endif