lib/krb5: fix the build without KRB4
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Mar 2009 11:03:05 +0000 (12:03 +0100)
committerLove Hornquist Astrand <lha@h5l.org>
Tue, 4 Aug 2009 18:19:44 +0000 (20:19 +0200)
metze

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
lib/krb5/principal.c

index d41b0683b92869d72d5a2c92cc0144d8cd2a2cee..9899f5661f834ec1e6ff8af115db4fe242cc0298 100644 (file)
@@ -1187,6 +1187,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++) {
@@ -1196,6 +1197,7 @@ name_convert(krb5_context context, const char *name, const char *realm,
            }
        }
     }
+#endif
     return -1;
 }