1. 16 8月, 2012 1 次提交
    • Stefan Knoblich's avatar
      FreeSWITCH: Add switch_strerror_r() to fix problems with XSI and GNU variants of strerror_r(). · ac730397
      Stefan Knoblich 提交于
      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: 's avatarStefan Knoblich <stkn@openisdn.net>
      ac730397
  2. 14 8月, 2012 33 次提交
  3. 10 8月, 2012 2 次提交
  4. 07 8月, 2012 4 次提交