From 7d9335ce69113f2fbd3969ca4497161351b4009d Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 11 Mar 2010 18:40:47 -0800 Subject: [PATCH] in the STRERROR_R_PROTO_COMPATIBLE case, only provide a rk_strerror_r function if there is a broken prototype From harald barth. --- lib/roken/roken.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index c48e6188d..45cefbe99 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -471,7 +471,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL getdtablesize(void); ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL strerror(int); #endif -#if !defined(HAVE_STRERROR_R) && !defined(strerror_r) && !defined(STRERROR_R_PROTO_COMPATIBLE) +#if (!defined(HAVE_STRERROR_R) && !defined(strerror_r)) || (!defined(STRERROR_R_PROTO_COMPATIBLE) && defined(HAVE_STRERROR_R)) int ROKEN_LIB_FUNCTION rk_strerror_r(int, char *, size_t); #else #define rk_strerror_r strerror_r