lik/krb5: fix the build without KRB4
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Mar 2009 11:03:05 +0000 (12:03 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 26 Mar 2009 08:54:51 +0000 (09:54 +0100)
metze

lib/krb5/principal.c

index 302f46648c600f568bade48c820d98faa2e96229..0aea01a04f29bd0d8b9c01ff9d1b747787c89047 100644 (file)
@@ -1169,6 +1169,7 @@ name_convert(krb5_context context, const char *name, const char *realm,
        return KRB5_NT_UNKNOWN;
 
     /* didn't find it in config file, try built-in list */
+#ifdef KRB4
     {
        struct v4_name_convert *q;
        for(q = default_v4_name_convert; q->from; q++) {
@@ -1178,6 +1179,7 @@ name_convert(krb5_context context, const char *name, const char *realm,
            }
        }
     }
+#endif
     return -1;
 }