Hash :
0447b703
Author :
Date :
2011-06-08T05:12:15
strerror: simplify replacement Only strerror-override depends on winsock2.h; our strerror.c file does not. This also fixes mingw strerror_r-posix use of winsock2.h via strerror-override. Since we assume C89 which guarantees a declaration for sterror, we don't need to repeat that check. * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete. * modules/strerror (configure.ac): No prereqs needed here... * modules/strerror-override (configure.ac): ...but this needs it. (Files): Add file for needed prereq macro. Signed-off-by: Eric Blake <eblake@redhat.com>
Description:
strerror() function: return string describing error code.
Files:
lib/strerror.c
m4/strerror.m4
Depends-on:
string
errno [test $REPLACE_STRERROR = 1]
intprops [test $REPLACE_STRERROR = 1]
strerror-override [test $REPLACE_STRERROR = 1]
verify [test $REPLACE_STRERROR = 1]
configure.ac:
gl_FUNC_STRERROR
if test $REPLACE_STRERROR = 1; then
AC_LIBOBJ([strerror])
fi
gl_MODULE_INDICATOR([strerror])
gl_STRING_MODULE_INDICATOR([strerror])
Makefile.am:
Include:
<string.h>
License:
LGPLv2+
Maintainer:
all