kerberos: fix HAVE_KRB5 related build issue.
authorGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 09:38:02 +0000 (11:38 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 09:38:02 +0000 (11:38 +0200)
Guenther
(This used to be commit 7d7ba8397743af52a74d00fd717bdeb5e3e12a28)

source3/include/ads.h

index ebe8be08b65626988d16899578c96f9b7b6058fa..97faf0b6eb4515b9bc02e73284fe8531d456f09a 100644 (file)
@@ -372,9 +372,8 @@ typedef struct {
        krb5_addresses *addrs;
 #else
 #error UNKNOWN_KRB5_ADDRESS_TYPE
-#endif
+#endif /* defined(HAVE_MAGIC_IN_KRB5_ADDRESS) && defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) */
 } smb_krb5_addresses;
-#endif
 
 #ifdef HAVE_KRB5_KEYBLOCK_KEYVALUE /* Heimdal */
 #define KRB5_KEY_TYPE(k)       ((k)->keytype)
@@ -394,7 +393,9 @@ typedef struct {
 #define KRB5_KT_KEY(k)         (&(k)->keyblock)
 #else
 #error krb5_keytab_entry has no key or keyblock member
-#endif
+#endif /* HAVE_KRB5_KEYTAB_ENTRY_KEY */
+
+#endif /* HAVE_KRB5 */
 
 enum ads_extended_dn_flags {
        ADS_EXTENDED_DN_HEX_STRING      = 0,