[Pkg-gnupg-commit] [gpgme] 44/53: tests: Make t-cancel more portable.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Oct 24 19:26:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gpgme.
commit 05e8e1260baa5cbc6f1d6e387e642c1f6c188d44
Author: Werner Koch <wk at gnupg.org>
Date: Fri Oct 14 16:29:06 2016 +0200
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 at gnupg.org>
---
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 16a062a..b5550d8 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>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list