diff --git a/include/ac/errno.h b/include/ac/errno.h index 9e71f29dd8..b34ec76841 100644 --- a/include/ac/errno.h +++ b/include/ac/errno.h @@ -23,11 +23,7 @@ # include #endif -#ifndef HAVE_SYS_ERRLIST - /* no sys_errlist */ -# define sys_nerr 0 -# define sys_errlist ((char **)0) -#elif defined( DECL_SYS_ERRLIST ) +#if defined( HAVE_SYS_ERRLIST ) && defined( DECL_SYS_ERRLIST ) /* have sys_errlist but need declaration */ LDAP_LIBC_V(int) sys_nerr; LDAP_LIBC_V(char) *sys_errlist[];