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 <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-10-14 16:29:06 +02:00
parent c6cab5a2bd
commit 05e8e1260b
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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>