mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
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>
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%