1 diff -Naur openldap-2.4.16.org/include/ac/errno.h openldap-2.4.16/include/ac/errno.h
2 --- openldap-2.4.16.org/include/ac/errno.h 2009-01-22 01:00:52.000000000 +0100
3 +++ openldap-2.4.16/include/ac/errno.h 2009-04-28 13:48:01.000000000 +0200
5 #undef _AC_ERRNO_UNKNOWN
6 #define _AC_ERRNO_UNKNOWN "unknown error"
8 -#ifdef HAVE_SYS_ERRLIST
9 - /* this is thread safe */
10 -# define STRERROR(e) ( (e) > -1 && (e) < sys_nerr \
11 - ? sys_errlist[(e)] : _AC_ERRNO_UNKNOWN )
13 -#elif defined( HAVE_STRERROR )
14 +#if defined( HAVE_STRERROR )
15 /* this may not be thread safe */
16 /* and, yes, some implementations of strerror may return NULL */
17 # define STRERROR(e) ( strerror(e) \