summaryrefslogtreecommitdiff
path: root/cpio/test/test_option_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/test/test_option_t.c')
-rw-r--r--cpio/test/test_option_t.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpio/test/test_option_t.c b/cpio/test/test_option_t.c
index 0f2dda27..3d27b72d 100644
--- a/cpio/test/test_option_t.c
+++ b/cpio/test/test_option_t.c
@@ -95,15 +95,15 @@ DEFINE_TEST(test_option_t)
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "");
#endif
-#if defined(HAVE_LOCALTIME_R)
- tmptr = localtime_r(&mtime, &tmbuf);
-#elif defined(HAVE__LOCALTIME64_S)
+#if defined(HAVE__LOCALTIME64_S)
tmptime = mtime;
terr = _localtime64_s(&tmbuf, &tmptime);
if (terr)
tmptr = NULL;
else
tmptr = &tmbuf;
+#elif defined(HAVE_LOCALTIME_R)
+ tmptr = localtime_r(&mtime, &tmbuf);
#else
tmptr = localtime(&mtime);
#endif