aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-10-14 14:29:06 +0000
committerWerner Koch <[email protected]>2016-10-14 14:32:59 +0000
commit05e8e1260baa5cbc6f1d6e387e642c1f6c188d44 (patch)
tree72093efece7b468f525775ffe2173156955f35b2
parentpython: Call ln(1) in a portable way. (diff)
downloadgpgme-05e8e1260baa5cbc6f1d6e387e642c1f6c188d44.tar.gz
gpgme-05e8e1260baa5cbc6f1d6e387e642c1f6c188d44.zip
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--tests/gpg/t-cancel.c8
1 files changed, 7 insertions, 1 deletions
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 <limits.h>
#include <ctype.h>
#include <errno.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+#include <sys/types.h>
#include <unistd.h>
#include <pthread.h>
-#include <sys/select.h>
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
#include <gpgme.h>