Try handle strerror_r more correct
This commit is contained in:
@@ -461,12 +461,12 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL getdtablesize(void);
|
|||||||
ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL strerror(int);
|
ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL strerror(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_STRERROR) && !defined(strerror)
|
#if !defined(HAVE_STRERROR_R) && !defined(strerror_r) && !defined(STRERROR_R_PROTO_COMPATIBLE)
|
||||||
#define strerror_r rk_strerror_r
|
int ROKEN_LIB_FUNCTION rk_strerror_r(int, char *, size_t);
|
||||||
int ROKEN_LIB_FUNCTION strerror_r(int, char *, size_t);
|
#else
|
||||||
|
#define rk_strerror_r strerror_r
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if !defined(HAVE_HSTRERROR) || defined(NEED_HSTRERROR_PROTO)
|
#if !defined(HAVE_HSTRERROR) || defined(NEED_HSTRERROR_PROTO)
|
||||||
#ifndef HAVE_HSTRERROR
|
#ifndef HAVE_HSTRERROR
|
||||||
#define hstrerror rk_hstrerror
|
#define hstrerror rk_hstrerror
|
||||||
|
Reference in New Issue
Block a user