Fix strerror on Interix.
authorEric Blake <ebb9@byu.net>
Tue, 25 Sep 2007 16:40:16 +0000 (10:40 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 25 Sep 2007 16:40:16 +0000 (10:40 -0600)
commitd5d3e86d326de4aa7d661fde1ebb636f3efbffd5
tree63d0f761271c9884d613824cfd89f42caeda91bf
parenta1d5bf4615a98dd53267bf49646a09b823df3fe2
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>
12 files changed:
ChangeLog
doc/functions/strerror.texi
lib/strerror.c
lib/string_.h
m4/strerror.m4
m4/string_h.m4
modules/argp
modules/error
modules/strerror
modules/strerror-tests [new file with mode: 0644]
modules/string
tests/test-strerror.c [new file with mode: 0644]