mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Define strerror() if it doesn't exist.
This commit is contained in:
parent
d75975edf8
commit
9a58202116
@ -28,6 +28,11 @@
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRERROR
|
||||
#define strerror(err) \
|
||||
(err) > -1 && (err) < sys_nerr ? sys_errlist[(err)] : "unknown"
|
||||
#endif
|
||||
|
||||
extern char* strerror_r();
|
||||
|
||||
#endif /* _AC_ERRNO_H */
|
||||
|
Loading…
Reference in New Issue
Block a user