s3:ldap: Use #ifdef instead of #if for config.h definitions
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 13:11:39 +0000 (14:11 +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/include/smb_ldap.h

index 19e4be5a3169118441ca9d1b23649c11102f3c22..57866382884a43963a36d6da4621442aeaddefd6 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef _SMB_LDAP_H
 #define _SMB_LDAP_H
 
-#if HAVE_LBER_H
+#ifdef HAVE_LBER_H
 #include <lber.h>
 #if defined(HPUX) && !defined(_LBER_TYPES_H)
 /* Define ber_tag_t and ber_int_t for using
@@ -39,7 +39,7 @@ typedef int ber_int_t;
 #endif
 #endif /* HAVE_LBER_H */
 
-#if HAVE_LDAP_H
+#ifdef HAVE_LDAP_H
 #include <ldap.h>
 #ifndef LDAP_CONST
 #define LDAP_CONST const