From 53540a7f1427b914893601fd95e6774bca9fbc47 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 8319ac7a3..4d967fd76 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -306,7 +306,7 @@ int ROKEN_LIB_FUNCTION getdtablesize(void); char * ROKEN_LIB_FUNCTION 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 -- 2.11.4.GIT