Stefan Knoblich ac730397ea FreeSWITCH: Add switch_strerror_r() to fix problems with XSI and GNU variants of strerror_r().
GNU variant of strerror_r() returns char *, while the XSI version returns int.

To make things worse, glibc ships both and added a unused result warning
in recent versions (2.16) causing the build to fail.

Add our own custom wrapper that always returns a pointer to the message buffer
and additionally make XSI versions of strerror_r() GNU compatible by
returning "Unknown error xxx" if no error message is available.

Fixes:
    src/switch_rtp.c: In function 'rtp_common_read':
    src/switch_rtp.c:3313:15: error: ignoring return value of 'strerror_r',
    declared with attribute warn_unused_result [-Werror=unused-result]
    cc1: all warnings being treated as errors

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-16 12:21:18 -05:00
2012-07-23 14:03:53 -05:00
2009-02-11 02:53:31 +00:00
2012-06-25 08:55:48 +00:00
2009-02-13 23:33:36 +00:00
2008-05-14 20:39:43 +00:00
2012-08-14 00:26:29 -05:00
2009-12-17 18:33:45 +00:00
2010-04-01 21:00:45 -04:00
2012-05-28 16:35:00 +00:00
2012-06-14 22:47:21 +00:00
2012-07-02 17:46:21 -04:00
2012-07-06 17:54:21 -05:00
doh
2012-07-05 14:45:11 -05:00
2009-10-02 14:44:16 +00:00
2012-05-15 10:20:52 -05:00
2010-01-23 20:19:18 +00:00
2012-08-14 00:24:56 -05:00
2009-11-18 19:42:00 +00:00
2012-08-14 00:24:56 -05:00
2006-12-17 01:01:09 +00:00
add
2011-10-21 10:15:15 -05:00
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Multiple Licenses 268 MiB
Languages
C 64.4%
C++ 21.8%
JavaScript 4.7%
Assembly 2%
Makefile 1%
Other 5.4%