Files
freeswitch/src
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-03 09:01:27 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-06-11 13:05:29 +00:00
2012-06-11 13:05:29 +00:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-05-10 22:34:37 -05:00
2012-05-23 13:13:32 -05:00
2012-04-18 11:52:02 -05:00
2012-07-31 08:03:07 -05:00
2012-04-18 11:52:02 -05:00
2012-06-11 13:05:29 +00:00
2012-07-26 21:25:50 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-08-07 07:35:41 -05:00
2012-06-04 09:24:42 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-06-22 18:15:06 -05:00
2012-04-18 11:52:02 -05:00
2012-07-04 23:06:32 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00
2012-04-18 11:52:02 -05:00