Merged revisions 120908 via svnmerge from
authorJeff Peeler <jpeeler@digium.com>
Fri, 6 Jun 2008 18:06:06 +0000 (18:06 +0000)
committerJeff Peeler <jpeeler@digium.com>
Fri, 6 Jun 2008 18:06:06 +0000 (18:06 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120908 | jpeeler | 2008-06-06 13:05:15 -0500 (Fri, 06 Jun 2008) | 1 line

only define thread storage variable if necessary for LOW_MEMORY
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@120909 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6c31e39..190b51f 100644 (file)
@@ -1723,11 +1723,13 @@ 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, NULL, ts_ast_rtp_destroy);
 AST_THREADSTORAGE_CUSTOM(ts_video_rtp, NULL, ts_ast_rtp_destroy);
 AST_THREADSTORAGE_CUSTOM(ts_text_rtp, NULL, ts_ast_rtp_destroy);
+#endif
 
 /*! \brief Authentication list for realm authentication 
  * \todo Move the sip_auth list to AST_LIST */