tests: Make t-cancel more portable.
authorWerner Koch <wk@gnupg.org>
Fri, 14 Oct 2016 14:29:06 +0000 (16:29 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 14 Oct 2016 14:32:59 +0000 (16:32 +0200)
* tests/gpg/t-cancel.c: Include sys/time.h and protect sys/select.h.

Signed-off-by: Werner Koch <wk@gnupg.org>
tests/gpg/t-cancel.c

index 16a062a..b5550d8 100644 (file)
 #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>