#688: Stronger check for return type of strrerror_r. (Nikolai Saoukh)

This commit is contained in:
Andreas Huggel 2010-04-03 05:41:42 +00:00
parent c7d5396669
commit 4eea186240

View File

@ -144,12 +144,10 @@ return 0;
endif( HAVE_SYS_TIME_H )
# strerror_r returns char*
check_c_source_compiles( "#include <string.h>
int main() {
char * c;
c = strerror_r(0,c,0);
return 0;
}" STRERROR_R_CHAR_P )
check_cxx_source_compiles( "
#include <cstring>
int dfunc() { char cb[12]; return *(strerror_r(1, cb, sizeof(cb))) == '\0'; }
" STRERROR_R_CHAR_P )
#function is declared with the above
if( STRERROR_R_CHAR_P )