summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-20 14:14:07 +0100
committerGary Lockyer <gary@samba.org>2018-11-28 23:19:23 +0100
commit3f3cc42b517a2ed42e37f140a8f4186936ba44a5 (patch)
treeca7be95d7df97bb1ea87a84e1ff568380eab1766 /source3/libads
parent72c6cd2d39a09966e2e3d728120283e785002c61 (diff)
downloadsamba-3f3cc42b517a2ed42e37f140a8f4186936ba44a5.tar.gz
s3:libads: Use #ifdef instead of #if for config.h definitions
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
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) {
/*