projects
/
gpgme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6cab5a
)
tests: Make t-cancel more portable.
author
Werner Koch
<wk@gnupg.org>
Fri, 14 Oct 2016 14:29:06 +0000
(16:29 +0200)
committer
Werner 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
patch
|
blob
|
history
diff --git
a/tests/gpg/t-cancel.c
b/tests/gpg/t-cancel.c
index
16a062a
..
b5550d8
100644
(file)
--- 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>