]> git.sur5r.net Git - openldap/commitdiff
Tried to port to NT... but no resolver routines.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 22 Oct 1998 20:58:37 +0000 (20:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 22 Oct 1998 20:58:37 +0000 (20:58 +0000)
libraries/libldap/getdxbyname.c

index 153b1119631abf4117e147b9bc9418233c7ef3a9..0290cf4037a98eaf9eb47d03a2839fb887ca0e33 100644 (file)
@@ -1,6 +1,3 @@
-#include "portable.h"
-
-#ifdef LDAP_DNS
 /*
  *  Copyright (c) 1995 Regents of the University of Michigan.
  *  All rights reserved.
@@ -8,10 +5,14 @@
  * ldap_getdxbyname - retrieve DX records from the DNS (from TXT records for now)
  */
 
+#include "portable.h"
+
+#ifdef LDAP_DNS
+
 #include <stdio.h>
 #include <stdlib.h>
-#include <ctype.h>
 
+#include <ac/ctype.h>
 #include <ac/socket.h>
 #include <ac/string.h>
 #include <ac/time.h>
 
 static char ** decode_answer LDAP_P(( unsigned char *answer, int len ));
 
-extern int h_errno;
-extern char *h_errlist[];
-
-
 #define MAX_TO_SORT    32