aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/krb/t_kerb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/krb/t_kerb.c')
-rw-r--r--src/lib/krb5/krb/t_kerb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/t_kerb.c b/src/lib/krb5/krb/t_kerb.c
index c63cd14..72c0a42 100644
--- a/src/lib/krb5/krb/t_kerb.c
+++ b/src/lib/krb5/krb/t_kerb.c
@@ -4,7 +4,9 @@
*/
#include "krb5.h"
+#ifdef KRB5_KRB4_COMPAT
#include "kerberosIV/krb.h"
+#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -65,6 +67,11 @@ void test_524_conv_principal(krb5_context ctx, char *name)
{
krb5_principal princ = 0;
krb5_error_code retval;
+#ifndef KRB5_KRB4_COMPAT
+#define ANAME_SZ 40
+#define INST_SZ 40
+#define REALM_SZ 40
+#endif
char aname[ANAME_SZ+1], inst[INST_SZ+1], realm[REALM_SZ+1];
aname[ANAME_SZ] = inst[INST_SZ] = realm[REALM_SZ] = 0;