summaryrefslogtreecommitdiff
path: root/source3/include/ads.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/ads.h')
-rw-r--r--source3/include/ads.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h
index f70c5a6f12..58fac36920 100644
--- a/source3/include/ads.h
+++ b/source3/include/ads.h
@@ -15,7 +15,11 @@ enum wb_posix_mapping {
};
typedef struct {
+#ifdef HAVE_LDAP
+ LDAP *ld;
+#else
void *ld; /* the active ldap structure */
+#endif
struct in_addr ldap_ip; /* the ip of the active connection, if any */
time_t last_attempt; /* last attempt to reconnect */
int ldap_port;