summaryrefslogtreecommitdiff
path: root/security/gnutls/patches
diff options
context:
space:
mode:
authorobache <obache>2011-05-02 09:27:43 +0000
committerobache <obache>2011-05-02 09:27:43 +0000
commit1b995b5808c721d3a3b19ebc16f228f98e153f92 (patch)
tree66801953d8732f3e6f6411b55bb4fbe3cf5ae26c /security/gnutls/patches
parent5806e284050b026514900e081d25c4278fb14383 (diff)
downloadpkgsrc-1b995b5808c721d3a3b19ebc16f228f98e153f92.tar.gz
Add a patch for lack of posix standard AF_LOCAL, fall back to AF_UNIX.
for PR#44924.
Diffstat (limited to 'security/gnutls/patches')
-rw-r--r--security/gnutls/patches/patch-lib_nettle_egd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/security/gnutls/patches/patch-lib_nettle_egd.c b/security/gnutls/patches/patch-lib_nettle_egd.c
new file mode 100644
index 00000000000..779c3052ccd
--- /dev/null
+++ b/security/gnutls/patches/patch-lib_nettle_egd.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_nettle_egd.c,v 1.1 2011/05/02 09:27:44 obache Exp $
+
+* for backward compatibility for lack of AF_LOCAL.
+
+--- lib/nettle/egd.c.orig 2011-04-08 00:30:45.000000000 +0000
++++ lib/nettle/egd.c
+@@ -37,6 +37,10 @@
+ #define offsetof(type, member) ((size_t) &((type *)0)->member)
+ #endif
+
++#ifndef AF_LOCAL
++#define AF_LOCAL AF_UNIX
++#endif
++
+ static int egd_socket = -1;
+
+ static int