This is a very rough diff (i.e. don't apply it to the tree the way it
is, it will screw up the other versions) but it will show you what
works. I know you can figure out how to detect this new version and
make the necessary changes ...
--- eldap.c.orig	Tue Jun  8 22:55:20 1999
+++ eldap.c	Tue Jun  8 22:53:57 1999
@@ -40,13 +40,11 @@
 
 #include "eldap.h"
 
-#ifdef HAVE_NS_LDAP
 # define HAVE_LDAP_SET_OPTION 1
 # define HAVE_LDAP_GET_ERRNO 1
-#else
-# undef HAVE_LDAP_SET_OPTION
+/* # undef HAVE_LDAP_SET_OPTION
 # undef HAVE_LDAP_GET_ERRNO
-#endif
+ */
 
 static int ldap_default_port;
 static Lisp_Object Vldap_default_base;
@@ -74,7 +72,7 @@
 #ifdef HAVE_LDAP_GET_ERRNO
   signal_simple_error
     ("LDAP error",
-     build_string (ldap_err2string (ldap_get_lderrno (ld, NULL, NULL))));
+     build_string (ldap_err2string (ldap_result2error (ld, 0, 0))));
 #else
   signal_simple_error ("LDAP error",
                        build_string (ldap_err2string (ld->ld_errno)));
-- 
Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA 
mharnois(a)willinet.net                      aa0bt(a)aa0bt.ampr.org 
 God made everything out of nothing, but the nothingness shows 
 through. -- Paul Valery