ifdef away code to be able to build with --disable-krb4

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Anton Lundin
2010-09-16 08:18:35 +02:00
committed by Love Hornquist Astrand
parent 0bfd697f62
commit 46a4a64dfe
3 changed files with 14 additions and 0 deletions

View File

@@ -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 */

View 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 */

View 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