Code

Added the AC_FUNC_STRERROR_R check.
authorSebastian Harl <sh@tokkee.org>
Sun, 2 Sep 2007 14:24:28 +0000 (16:24 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Sun, 2 Sep 2007 15:54:29 +0000 (17:54 +0200)
commitfa7db5e964775dc39e71661884de9f4f8bde7ef6
treef483f4ea535bdf87aca24ef98e9bac4ad25613a3
parente491e457a4e2be133baf25d296ccc0aab544d609
Added the AC_FUNC_STRERROR_R check.

Even though Posix requires "strerror_r" to return an "int", some systems
(e.g. the GNU libc) return a "char *" _and_ ignore the second argument.

sstrerror() (in src/common.c) has been changed to be aware of this and
handle both cases correctly.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
configure.in
src/common.c