]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/getdxbyname.c
Fix ldap_send_initial_request() to open connection if not already
[openldap] / libraries / libldap / getdxbyname.c
index 0290cf4037a98eaf9eb47d03a2839fb887ca0e33..af03dd5e7d801a8e8dde24b400a6e08ef4017716 100644 (file)
@@ -1,4 +1,8 @@
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
  *  Copyright (c) 1995 Regents of the University of Michigan.
  *  All rights reserved.
  *
@@ -7,7 +11,7 @@
 
 #include "portable.h"
 
-#ifdef LDAP_DNS
+#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -17,8 +21,6 @@
 #include <ac/string.h>
 #include <ac/time.h>
 
-#include "lber.h"
-#include "ldap.h"
 #include "ldap-int.h"
 
 static char ** decode_answer LDAP_P(( unsigned char *answer, int len ));
@@ -197,4 +199,4 @@ decode_answer( unsigned char *answer, int len )
     return( dxs );
 }
 
-#endif /* LDAP_DNS */
+#endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_DNS */