diff options
Diffstat (limited to 'cpio/test/test_option_t.c')
-rw-r--r-- | cpio/test/test_option_t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpio/test/test_option_t.c b/cpio/test/test_option_t.c index 52bcff52..9eef0da5 100644 --- a/cpio/test/test_option_t.c +++ b/cpio/test/test_option_t.c @@ -37,7 +37,7 @@ DEFINE_TEST(test_option_t) char date[32]; char date2[32]; struct tm *tmptr; -#if defined(HAVE_LOCALTIME_R) || defined(HAVE__LOCALTIME64_S) +#if defined(HAVE_LOCALTIME_R) || defined(HAVE_LOCALTIME_S) struct tm tmbuf; #endif @@ -91,8 +91,8 @@ DEFINE_TEST(test_option_t) #ifdef HAVE_LOCALE_H setlocale(LC_ALL, ""); #endif -#if defined(HAVE__LOCALTIME64_S) - tmptr = _localtime64_s(&tmbuf, &mtime) ? NULL : &tmbuf; +#if defined(HAVE_LOCALTIME_S) + tmptr = localtime_s(&tmbuf, &mtime) ? NULL : &tmbuf; #elif defined(HAVE_LOCALTIME_R) tmptr = localtime_r(&mtime, &tmbuf); #else |