Files
pkgsrc-ng/security/gnutls/patches/patch-lib_nettle_egd.c
2013-09-26 17:14:40 +02:00

18 lines
397 B
C

$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