From 5a3eb1df560f29c4692e01594fc63d22bb4c50ee Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 17 Oct 2009 10:17:33 +0000 Subject: provide replacement functions for ldap_initialize() and ldap_passwd_s() and centralise LDAP compatibility hacks into ldap_compat.h git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1007 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/myldap.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'nslcd') diff --git a/nslcd/myldap.c b/nslcd/myldap.c index ca7328b..ca42241 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -72,20 +72,12 @@ #include #include "myldap.h" -#include "compat/pagectrl.h" #include "common.h" #include "log.h" #include "cfg.h" #include "attmap.h" #include "common/set.h" - -/* compatibility macros */ -#ifndef LDAP_CONST -#define LDAP_CONST const -#endif /* not LDAP_CONST */ -#ifndef LDAP_MSG_ONE -#define LDAP_MSG_ONE 0x00 -#endif /* not LDAP_MSG_ONE */ +#include "compat/ldap_compat.h" /* the maximum number of searches per session */ #define MAX_SEARCHES_IN_SESSION 4 -- cgit v1.2.3