aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-04 09:24:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-04 09:24:36 +0000
commit44ef6d97d5c4cb631e3cf70dfb854be5db1488d2 (patch)
tree2fd7d8e5510e8a95c7a04960a3502667d42436b4 /main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch
parent3270015d234b245f95d9e9c60757043e7c10a7e8 (diff)
downloadaports-44ef6d97d5c4cb631e3cf70dfb854be5db1488d2.tar.bz2
aports-44ef6d97d5c4cb631e3cf70dfb854be5db1488d2.tar.xz
main/gnupg: upgrade to 2.1.0-beta751
Diffstat (limited to 'main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch')
-rw-r--r--main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch b/main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch
new file mode 100644
index 0000000000..a835f39278
--- /dev/null
+++ b/main/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch
@@ -0,0 +1,31 @@
+From d2f3053e156a8dfc3e2e7f8fa814f671d851b26f Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 4 Jul 2014 08:15:21 +0000
+Subject: [PATCH] Include sys/select.h for FD_SETSIZE
+
+This fixes the following compile error with musl libc:
+watchgnupg.c:225:18: error: 'FD_SETSIZE' undeclared (first use in this
+function)
+ else if (fd >= FD_SETSIZE)
+ ^
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ tools/watchgnupg.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/watchgnupg.c b/tools/watchgnupg.c
+index 4f4d54d..7aede22 100644
+--- a/tools/watchgnupg.c
++++ b/tools/watchgnupg.c
+@@ -28,6 +28,7 @@
+ #include <stdarg.h>
+ #include <assert.h>
+ #include <unistd.h>
++#include <sys/select.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <netinet/in.h>
+--
+2.0.1
+