Try handle strerror_r more correct

This commit is contained in:
Love Hornquist Astrand
2009-12-13 12:02:28 -08:00
parent 6dcf1c947b
commit 2f07a7d29d

View File

@@ -461,12 +461,12 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL getdtablesize(void);
ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL strerror(int);
#endif
#if !defined(HAVE_STRERROR) && !defined(strerror)
#define strerror_r rk_strerror_r
int ROKEN_LIB_FUNCTION strerror_r(int, char *, size_t);
#if !defined(HAVE_STRERROR_R) && !defined(strerror_r) && !defined(STRERROR_R_PROTO_COMPATIBLE)
int ROKEN_LIB_FUNCTION rk_strerror_r(int, char *, size_t);
#else
#define rk_strerror_r strerror_r
#endif
#if !defined(HAVE_HSTRERROR) || defined(NEED_HSTRERROR_PROTO)
#ifndef HAVE_HSTRERROR
#define hstrerror rk_hstrerror