diff mbox series

tst: ftime: Add missing include to provide EXIT_UNSUPPORTED definition

Message ID 20201019150904.2135-1-lukma@denx.de
State Dropped
Delegated to: Lukasz Majewski
Headers show
Series tst: ftime: Add missing include to provide EXIT_UNSUPPORTED definition | expand

Commit Message

Lukasz Majewski Oct. 19, 2020, 3:09 p.m. UTC
On some ports - like rv32 the ftime is not supported at all. As a result
the EXIT_UNSUPPORTED is not defined (as proper include is added when
./support/test-driver.c is pasted).

This commit fixes following error:
#include <support/test-driver.h>
tst-ftime.c:62:10: error: ‘EXIT_UNSUPPORTED’ undeclared (first use in this function)
   62 |   return EXIT_UNSUPPORTED;
      |          ^~~~~~~~~~~~~~~~
tst-ftime.c:62:10: note: each undeclared identifier is reported only once for each function it appears in

when ../src/scripts/build-many-glibcs.py ../glibc-many-build --keep failed glibcs
riscv32-linux-gnu-rv32imac-ilp32 riscv32-linux-gnu-rv32imafdc-ilp32
riscv32-linux-gnu-rv32imafdc-ilp32d

is run.
---
 time/tst-ftime.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/time/tst-ftime.c b/time/tst-ftime.c
index 6978feb0f1..5815e49580 100644
--- a/time/tst-ftime.c
+++ b/time/tst-ftime.c
@@ -56,6 +56,7 @@  do_test (void)
   return 0;
 }
 #else
+#include <support/test-driver.h>
 static int
 do_test (void)
 {