]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - openldap/patches/openldap-2.4.17-disable_sys_err.patch
Merge remote-tracking branch 'ms/u-boot'
[people/ms/ipfire-3.x.git] / openldap / patches / openldap-2.4.17-disable_sys_err.patch
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
4 @@ -36,12 +36,7 @@
5 #undef _AC_ERRNO_UNKNOWN
6 #define _AC_ERRNO_UNKNOWN "unknown error"
7
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 )
12 -
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) \