summaryrefslogtreecommitdiff
path: root/ldap-hosts.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-10-17 14:13:17 +0000
committerArthur de Jong <arthur@arthurdejong.org>2006-10-17 14:13:17 +0000
commit198b9cdb023374fb47f91f5503655ca14b805a5f (patch)
tree58895dcecdffcb555e723bd036cabd118390382e /ldap-hosts.c
parent42688c3b7d616c8dc221a76b1cf2155d336db954 (diff)
get rid of ltf files (which contain NPL licenced code btw) clean up includes and general small code cleanups
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@19 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'ldap-hosts.c')
-rw-r--r--ldap-hosts.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/ldap-hosts.c b/ldap-hosts.c
index 507fd30..4fa535e 100644
--- a/ldap-hosts.c
+++ b/ldap-hosts.c
@@ -23,16 +23,6 @@
#include "config.h"
-#ifdef HAVE_PORT_BEFORE_H
-#include <port_before.h>
-#endif
-
-#if defined(HAVE_THREAD_H)
-#include <thread.h>
-#elif defined(HAVE_PTHREAD_H)
-#include <pthread.h>
-#endif
-
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
@@ -42,27 +32,26 @@
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <resolv.h>
-
#ifdef HAVE_LBER_H
#include <lber.h>
#endif
#ifdef HAVE_LDAP_H
#include <ldap.h>
#endif
-
+#if defined(HAVE_THREAD_H)
+#include <thread.h>
+#elif defined(HAVE_PTHREAD_H)
+#include <pthread.h>
+#endif
#ifdef INET6
#include <resolv/mapv4v6addr.h>
#endif
-#ifndef MAXALIASES
-#define MAXALIASES 35
-#endif
-
#include "ldap-nss.h"
#include "util.h"
-#ifdef HAVE_PORT_AFTER_H
-#include <port_after.h>
+#ifndef MAXALIASES
+#define MAXALIASES 35
#endif
static struct ent_context *hosts_context = NULL;