]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
only define thread storage variable if necessary for LOW_MEMORY
authorJeff Peeler <jpeeler@digium.com>
Fri, 6 Jun 2008 18:05:15 +0000 (18:05 +0000)
committerJeff Peeler <jpeeler@digium.com>
Fri, 6 Jun 2008 18:05:15 +0000 (18:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120908 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 278528c8049fda8effb2ae797ce8a8adffbe577e..753118e8cbf63189290343c2ea3e752dcc0b3ad5 100644 (file)
@@ -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 */