From be415faa4d1c68274b784120fbac9f77f7dfb2bd Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 22 Jan 2009 00:46:17 +0000 Subject: [PATCH] Merged revisions 169944 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r169944 | tilghman | 2009-01-21 18:44:52 -0600 (Wed, 21 Jan 2009) | 16 lines Merged revisions 169943 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r169943 | tilghman | 2009-01-21 18:43:31 -0600 (Wed, 21 Jan 2009) | 9 lines AST_RWLOCK_INIT_VALUE is always defined. What we really wanted to ask is whether autoconf detected a static initializer value. This fixes rwlocks on all such platforms (mainly, Mac OS X). (closes issue #13767) Reported by: jcovert Patches: 20090121__bug13767.diff.txt uploaded by Corydon76 (license 14) Tested by: jcovert, Corydon76 ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@169946 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/linkedlists.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index f49150a50b..e172d91bc7 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -283,7 +283,7 @@ struct name { \ This would define \c struct \c entry_list, intended to hold a list of type \c struct \c entry. */ -#ifndef AST_RWLOCK_INIT_VALUE +#ifndef HAVE_PTHREAD_RWLOCK_INITIALIZER #define AST_RWLIST_HEAD_STATIC(name, type) \ struct name { \ struct type *first; \