From: Jeff Peeler Date: Fri, 6 Jun 2008 18:05:15 +0000 (+0000) Subject: only define thread storage variable if necessary for LOW_MEMORY X-Git-Tag: 1.4.22-rc1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9eb1170dfb728184a6ee0dbc7088b6f8cb1ed31;p=thirdparty%2Fasterisk.git only define thread storage variable if necessary for LOW_MEMORY git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120908 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 278528c804..753118e8cb 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1194,10 +1194,12 @@ static void temp_pvt_cleanup(void *); /*! \brief A per-thread temporary pvt structure */ AST_THREADSTORAGE_CUSTOM(ts_temp_pvt, temp_pvt_init, temp_pvt_cleanup); +#ifdef LOW_MEMORY static void ts_ast_rtp_destroy(void *); AST_THREADSTORAGE_CUSTOM(ts_audio_rtp, ts_audio_rtp_init, ts_ast_rtp_destroy); AST_THREADSTORAGE_CUSTOM(ts_video_rtp, ts_video_rtp_init, ts_ast_rtp_destroy); +#endif /*! \todo Move the sip_auth list to AST_LIST */ static struct sip_auth *authl = NULL; /*!< Authentication list for realm authentication */