diff options
-rw-r--r-- | src/tests/krb5_child-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c index 89abfd4c..102827ed 100644 --- a/src/tests/krb5_child-test.c +++ b/src/tests/krb5_child-test.c @@ -290,17 +290,17 @@ child_done(struct tevent_req *req) static void printtime(krb5_timestamp ts) { +#ifdef HAVE_KRB5_TIMESTAMP_TO_SFSTRING krb5_error_code kret; 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 +#elif defined(HAVE_KRB5_FORMAT_TIME) printf("%s", ctime(&ts)); #endif /* HAVE_KRB5_TIMESTAMP_TO_SFSTRING */ } |