From: Ken Raeburn Date: Sun, 8 Aug 2004 21:22:41 +0000 (+0000) Subject: * threads.c (GET_NO_PTHREAD_TSD) [!HAVE_PRAGMA_WEAK_REF]: Macro result type X-Git-Tag: krb5-1.4-beta1~160 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2aba238ac19a5d15d322fcb146f263f12ce5fb0d;p=krb5.git * 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 --- 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;