[CRIU] [PATCH] zdtm: fix building uptime_grow.c on s390
Adrian Reber
adrian at lisas.de
Wed Jul 19 16:40:36 MSK 2017
From: Adrian Reber <areber at redhat.com>
Building the uptime_grow test case fails on s390 with:
uptime_grow.o: In function `main':
/tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__floatdidf'
/tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__muldf3'
/tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__floatdidf'
/tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__adddf3'
Include math.h fixes it.
Signed-off-by: Adrian Reber <areber at redhat.com>
---
test/zdtm/static/uptime_grow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/zdtm/static/uptime_grow.c b/test/zdtm/static/uptime_grow.c
index 6d99509..87ae765 100644
--- a/test/zdtm/static/uptime_grow.c
+++ b/test/zdtm/static/uptime_grow.c
@@ -5,6 +5,7 @@ const char *test_author = "Evgeny Antysev <eantyshev at parallels.com>";
#include <time.h>
#include <stdlib.h>
+#include <math.h>
# define tv_ge(a, b) \
(((a)->tv_sec == (b)->tv_sec) ? \
--
1.8.3.1
More information about the CRIU
mailing list