From 05e8e1260baa5cbc6f1d6e387e642c1f6c188d44 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 14 Oct 2016 16:29:06 +0200 Subject: [PATCH] tests: Make t-cancel more portable. * tests/gpg/t-cancel.c: Include sys/time.h and protect sys/select.h. Signed-off-by: Werner Koch --- tests/gpg/t-cancel.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/gpg/t-cancel.c b/tests/gpg/t-cancel.c index 16a062a7..b5550d8a 100644 --- a/tests/gpg/t-cancel.c +++ b/tests/gpg/t-cancel.c @@ -32,9 +32,15 @@ #include #include #include +#ifdef HAVE_SYS_TIME_H +# include +#endif +#include #include #include -#include +#ifdef HAVE_SYS_SELECT_H +# include +#endif #include