summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRambaldi <gentoo@xs4me.net>2012-07-07 13:36:06 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-07-09 08:41:19 -0400
commit5dc9860a9f0aa626687281eed62c8af1986c2b99 (patch)
tree0455b47e5775bbc998dcd6b26adf633409e966f6 /src/tests
parentaa2c6f469414668e56aa03d5ba5cecde64bc713e (diff)
downloadsssd-5dc9860a9f0aa626687281eed62c8af1986c2b99.tar.gz
sssd-5dc9860a9f0aa626687281eed62c8af1986c2b99.tar.bz2
sssd-5dc9860a9f0aa626687281eed62c8af1986c2b99.zip
heimdal: fix compile error in krb5-child-test
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/krb5_child-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index 636f7336..760b9586 100644
--- a/src/tests/krb5_child-test.c
+++ b/src/tests/krb5_child-test.c
@@ -315,11 +315,15 @@ printtime(krb5_timestamp ts)
char timestring[BUFSIZ];
char fill = '\0';
+#ifdef HAVE_KRB5_TIMESTAMP_TO_SFSTRING
kret = krb5_timestamp_to_sfstring(ts, timestring, BUFSIZ, &fill);
if (kret) {
KRB5_CHILD_TEST_DEBUG(SSSDBG_OP_FAILURE, kret);
}
printf("%s", timestring);
+#else
+ printf("%s", ctime(&ts));
+#endif /* HAVE_KRB5_TIMESTAMP_TO_SFSTRING */
}
static void