s3:libads: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 13:14:07 +0000 (14:14 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:23 +0000 (23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/libads/ads_struct.c
source3/libads/kerberos.c

index 0dc7b11d4002623873a639501ed99fd7f9a5798a..3ab682c0e3883459bd27f309105af7fc876d39a0 100644 (file)
@@ -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);
index 418e5a7224361fb59a43f1deeded78a82871f726..43b6a1debb4206d784145657d0d4bb280312fbb7 100644 (file)
@@ -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) {
                        /*