diff options
author | Eric Blake <ebb9@byu.net> | 2007-09-25 10:40:16 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-09-25 10:40:16 -0600 |
commit | d5d3e86d326de4aa7d661fde1ebb636f3efbffd5 (patch) | |
tree | 63d0f761271c9884d613824cfd89f42caeda91bf /m4/string_h.m4 | |
parent | a1d5bf4615a98dd53267bf49646a09b823df3fe2 (diff) | |
download | gnulib-d5d3e86d326de4aa7d661fde1ebb636f3efbffd5.tar.gz |
Fix strerror on Interix.
* lib/string_.h (strerror): Declare replacement.
* doc/functions/strerror.texi (strerror): Document the Interix
shortcoming.
* modules/string (Makefile.am): Support new hooks.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
* m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
gl_FUNC_STRERROR_SEPARATE.
(gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
* lib/strerror.c (rpl_strerror): Provide replacement.
* modules/strerror (Depends-on): Add string.
(configure.ac): Detect use of module.
* tests/test-strerror.c: New file.
* modules/strerror-tests: New test module.
* modules/argp (Depends-on): Add strerror.
* modules/error (Depends-on): Likewise.
Reported by Martin Koeppe.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4/string_h.m4')
-rw-r--r-- | m4/string_h.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/string_h.m4 b/m4/string_h.m4 index ec51e9a018..d811e26b88 100644 --- a/m4/string_h.m4 +++ b/m4/string_h.m4 @@ -57,6 +57,7 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], GNULIB_MBSSPN=0; AC_SUBST([GNULIB_MBSSPN]) GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP]) GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R]) + GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) @@ -74,4 +75,6 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) + HAVE_DECL_STRERROR=1; AC_SUBST([HAVE_DECL_STRERROR]) + REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) ]) |