summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-12-01 15:55:28 +0100
committerWerner Koch <wk@gnupg.org>2014-12-01 15:55:28 +0100
commit0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7 (patch)
treea01a4916c4be4dc4eff9421967881cfe8e59546d /tools
parentgpg: Fix export bug using exact search with only one key in the keybox. (diff)
downloadgnupg2-0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7.tar.xz
gnupg2-0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7.zip
tools: Improve watchgnupg portability.
* configure.ac (AC_CHECK_HEADERS): Check for sys.select.h * tools/watchgnupg.c: Include it. -- It seems http://www.musl-libc.org/ is quite limited and requires the use sys/select.h instead of unistd.h et al.
Diffstat (limited to 'tools')
-rw-r--r--tools/watchgnupg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/watchgnupg.c b/tools/watchgnupg.c
index 4f4d54db2..8ad2a13e3 100644
--- a/tools/watchgnupg.c
+++ b/tools/watchgnupg.c
@@ -34,6 +34,9 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include <time.h>
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
#define PGM "watchgnupg"