From 5d8c4efb07729d10c01d62e2e3aeb37b6d87771e Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 23 Mar 2006 00:59:05 +0000 Subject: Fix errno usage in Python (!) code. --- net/py-libdnet/distinfo | 3 ++- net/py-libdnet/patches/patch-ab | 12 ++++++++++++ net/py-libdnet/patches/patch-ac | 12 ++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 net/py-libdnet/patches/patch-ab create mode 100644 net/py-libdnet/patches/patch-ac (limited to 'net') diff --git a/net/py-libdnet/distinfo b/net/py-libdnet/distinfo index 76b081a8ef7..dd1bcae5a39 100644 --- a/net/py-libdnet/distinfo +++ b/net/py-libdnet/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/08/10 13:52:52 drochner Exp $ +$NetBSD: distinfo,v 1.2 2006/03/23 00:59:05 joerg Exp $ SHA1 (libdnet-1.10.tar.gz) = 1dd9594adb5a3af121960abd6960bcedfc815f37 RMD160 (libdnet-1.10.tar.gz) = 167cf841b3fdd061ec8d6a56d53c341678ee5a9e Size (libdnet-1.10.tar.gz) = 419752 bytes SHA1 (patch-aa) = 34258a63fc9f3866920b7529e8d8b4ea94d36445 +SHA1 (patch-ab) = 119592eda96557f71230514ab788933e8d60e3d6 diff --git a/net/py-libdnet/patches/patch-ab b/net/py-libdnet/patches/patch-ab new file mode 100644 index 00000000000..d4ffa9817e5 --- /dev/null +++ b/net/py-libdnet/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1 2006/03/23 00:59:05 joerg Exp $ + +--- python/dnet.pyx.orig 2006-03-23 00:52:42.000000000 +0000 ++++ python/dnet.pyx +@@ -46,7 +46,6 @@ cdef __memcpy(char *dst, object src, int + memcpy(dst, src, n) + + cdef __oserror(): +- cdef extern int errno + return strerror(errno) + + def __iter_append(entry, l): diff --git a/net/py-libdnet/patches/patch-ac b/net/py-libdnet/patches/patch-ac new file mode 100644 index 00000000000..05459b7b80f --- /dev/null +++ b/net/py-libdnet/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.1 2006/03/23 00:59:05 joerg Exp $ + +--- python/dnet.c.orig 2006-03-23 00:56:28.000000000 +0000 ++++ python/dnet.c +@@ -270,7 +270,6 @@ static PyObject *__pyx_f_4dnet___memcpy( + + + static PyObject *__pyx_f_4dnet___oserror(void) { +- extern int errno; + PyObject *__pyx_r; + PyObject *__pyx_1 = 0; + -- cgit v1.2.3