From 2aba238ac19a5d15d322fcb146f263f12ce5fb0d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 8 Aug 2004 21:22:41 +0000 Subject: [PATCH] * threads.c (GET_NO_PTHREAD_TSD) [!HAVE_PRAGMA_WEAK_REF]: Macro result type should be pointer to tsd_block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16648 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/ChangeLog | 5 +++++ src/util/support/threads.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/support/ChangeLog b/src/util/support/ChangeLog index d460e5443..441cd1f50 100644 --- a/src/util/support/ChangeLog +++ b/src/util/support/ChangeLog @@ -1,3 +1,8 @@ +2004-08-08 Ken Raeburn + + * threads.c (GET_NO_PTHREAD_TSD) [!HAVE_PRAGMA_WEAK_REF]: Macro + result type should be pointer to tsd_block. + 2004-07-31 Ken Raeburn * threads.c (krb5int_thread_support_init): Do finish diff --git a/src/util/support/threads.c b/src/util/support/threads.c index dd9819487..eb27f1cf9 100644 --- a/src/util/support/threads.c +++ b/src/util/support/threads.c @@ -109,7 +109,7 @@ struct tsd_block { static struct tsd_block tsd_if_single; # define GET_NO_PTHREAD_TSD() (&tsd_if_single) #else -# define GET_NO_PTHREAD_TSD() (abort(),0) +# define GET_NO_PTHREAD_TSD() (abort(),(struct tsd_block *)0) #endif static pthread_key_t key; -- 2.26.2