How do I get the POSIX strerror_r instead of GNU version?
I\'m compiling with g++ on Ubuntu 8.04 with glibc version 2.7 ( based on what\'s in ).
Edi
This is an implementation-specific workaround.
#ifdef __cplusplus extern "C" { #endif extern int __xpg_strerror_r(int errcode,char* buffer,size_t length); #define strerror_r __xpg_strerror_r #ifdef __cplusplus } #endif