1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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>
This commit is contained in:
Andreas Schneider 2018-11-20 14:14:07 +01:00 committed by Gary Lockyer
parent 72c6cd2d39
commit 3f3cc42b51
2 changed files with 2 additions and 2 deletions

View 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);

View 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) {
/*