PKG_TARBALL = $(THISAPP).tgz
-PKG_PATCHES += $(THISAPP)-disable_sys_err.patch
-
###############################################################################
# Installation Details
###############################################################################
--- /dev/null
+diff -Naur openldap-2.4.16.org/include/ac/errno.h openldap-2.4.16/include/ac/errno.h
+--- openldap-2.4.16.org/include/ac/errno.h 2009-01-22 01:00:52.000000000 +0100
++++ openldap-2.4.16/include/ac/errno.h 2009-04-28 13:48:01.000000000 +0200
+@@ -36,12 +36,7 @@
+ #undef _AC_ERRNO_UNKNOWN
+ #define _AC_ERRNO_UNKNOWN "unknown error"
+
+-#ifdef HAVE_SYS_ERRLIST
+- /* this is thread safe */
+-# define STRERROR(e) ( (e) > -1 && (e) < sys_nerr \
+- ? sys_errlist[(e)] : _AC_ERRNO_UNKNOWN )
+-
+-#elif defined( HAVE_STRERROR )
++#if defined( HAVE_STRERROR )
+ /* this may not be thread safe */
+ /* and, yes, some implementations of strerror may return NULL */
+ # define STRERROR(e) ( strerror(e) \