summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-05-02 09:27:43 +0000
committerobache <obache@pkgsrc.org>2011-05-02 09:27:43 +0000
commitf2478777ba50449fc6fa0b98195ea64a78c3acd3 (patch)
tree66801953d8732f3e6f6411b55bb4fbe3cf5ae26c /security
parente9dba3e225fac9f0576cb27c3b343ede36159b3f (diff)
downloadpkgsrc-f2478777ba50449fc6fa0b98195ea64a78c3acd3.tar.gz
Add a patch for lack of posix standard AF_LOCAL, fall back to AF_UNIX.
for PR#44924.
Diffstat (limited to 'security')
-rw-r--r--security/gnutls/distinfo3
-rw-r--r--security/gnutls/patches/patch-lib_nettle_egd.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/security/gnutls/distinfo b/security/gnutls/distinfo
index 36c6537e3ac..29cf20437a6 100644
--- a/security/gnutls/distinfo
+++ b/security/gnutls/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.72 2011/04/27 16:56:43 tnn Exp $
+$NetBSD: distinfo,v 1.73 2011/05/02 09:27:43 obache Exp $
SHA1 (gnutls-2.12.3.tar.bz2) = 1799bdea6b373e312b055fa7caf06effecb9c033
RMD160 (gnutls-2.12.3.tar.bz2) = f405a971df1e3773f26b854028b11727b28162b6
@@ -8,3 +8,4 @@ SHA1 (patch-ae) = cadc476a6a120390c3c2792b52dd02d27a3884e6
SHA1 (patch-af) = 321c3488dd383a09dd95f6a15f50b9f54f6aa5fc
SHA1 (patch-ai) = 2c5c181ec6de9622cac66c2d5fe2cc8f3f89fbe8
SHA1 (patch-lib_configure) = a3a64d0aed1929d3b4edf91d48f213da23269027
+SHA1 (patch-lib_nettle_egd.c) = b7e9769e8c620519c43ca7b7481a558e9d389c68
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