mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
Define strerror() if it doesn't exist.
This commit is contained in:
parent
d75975edf8
commit
9a58202116
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue