summaryrefslogtreecommitdiff
path: root/test/time
diff options
context:
space:
mode:
Diffstat (limited to 'test/time')
-rw-r--r--test/time/Makefile4
-rw-r--r--test/time/tst-ftime_l.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/test/time/Makefile b/test/time/Makefile
index db158ec76..bb2a2b5bb 100644
--- a/test/time/Makefile
+++ b/test/time/Makefile
@@ -4,10 +4,6 @@
TESTS_DISABLED := bug-asctime bug-asctime_r time tst-mktime2 tst-posixtz \
tst-strftime tst-strptime tst-timezone
-ifneq ($(UCLIBC_HAS_LOCALE),y)
-TESTS_DISABLED += tst-ftime_l
-endif
-
include ../Test.mak
CFLAGS_tst-strptime2 := -std=c99
diff --git a/test/time/tst-ftime_l.c b/test/time/tst-ftime_l.c
index 5ecb22fbe..3786f8c09 100644
--- a/test/time/tst-ftime_l.c
+++ b/test/time/tst-ftime_l.c
@@ -3,7 +3,7 @@
#include <string.h>
#include <time.h>
#include <features.h>
-#ifdef __UCLIBC_HAS_WCHAR__
+#if defined __UCLIBC_HAS_WCHAR__ && defined __UCLIBC_HAS_LOCALE__
#include <locale.h>
#include <wchar.h>