summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ads_struct.c2
-rw-r--r--source3/libads/kerberos.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c
index 0dc7b11d400..3ab682c0e38 100644
--- a/source3/libads/ads_struct.c
+++ b/source3/libads/ads_struct.c
@@ -184,7 +184,7 @@ void ads_destroy(ADS_STRUCT **ads)
bool is_mine;
is_mine = (*ads)->is_mine;
-#if HAVE_LDAP
+#ifdef HAVE_LDAP
ads_disconnect(*ads);
#endif
SAFE_FREE((*ads)->server.realm);
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 418e5a72243..43b6a1debb4 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -60,7 +60,7 @@ kerb_prompter(krb5_context ctx, void *data,
* version have looping detection and return with a proper error code.
*/
-#if HAVE_KRB5_PROMPT_TYPE /* Heimdal */
+#if defined(HAVE_KRB5_PROMPT_TYPE) /* Heimdal */
if (prompts[0].type == KRB5_PROMPT_TYPE_NEW_PASSWORD &&
prompts[1].type == KRB5_PROMPT_TYPE_NEW_PASSWORD_AGAIN) {
/*