ifdef away code to be able to build with --disable-krb4
authorAnton Lundin <glance@suiko.acc.umu.se>
Thu, 16 Sep 2010 06:18:35 +0000 (08:18 +0200)
committerLove Hornquist Astrand <lha@h5l.org>
Fri, 17 Sep 2010 05:47:14 +0000 (22:47 -0700)
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
kdc/524.c
kdc/v4_dump.c
lib/krb5/name-45-test.c

index cb50263aaf840566f879f827c30a5b7be8656504..2160ce49ece38dff39c21533de0ec48615aa343f 100644 (file)
--- a/kdc/524.c
+++ b/kdc/524.c
@@ -33,6 +33,8 @@
 
 #include "kdc_locl.h"
 
+#ifdef KRB4
+
 #include <krb5-v4compat.h>
 
 /*
@@ -394,3 +396,4 @@ _kdc_do_524(krb5_context context,
        _kdc_free_ent (context, server);
     return ret;
 }
+#endif /* KRB4 */
index 7d5baaefba85f7ad9f393a3aca271ac2644ac713..5180f70b2433ad7effa6893852b7c84982c0dd48 100644 (file)
@@ -33,6 +33,8 @@
 
 #include "hprop.h"
 
+#ifdef KRB4
+
 static time_t
 time_parse(const char *cp)
 {
@@ -139,3 +141,4 @@ v4_prop_dump(void *arg, const char *file)
     fclose(f);
     return 0;
 }
+#endif /* KRB4 */
index 747dbccdae10e71895af3c246b98bae50aef6a03..f6302c9610f111e3efc72e06d7cc04225ffef67e 100644 (file)
@@ -35,6 +35,8 @@
 #include "krb5_locl.h"
 #include <err.h>
 
+#ifdef KRB4
+
 enum { MAX_COMPONENTS = 3 };
 
 static struct testcase {
@@ -292,3 +294,9 @@ main(int argc, char **argv)
     }
     return val;
 }
+
+#else /* stub for !KRB4 */
+int main(int argc, char *argv[]) {
+       return 77;
+}
+#endif