summaryrefslogtreecommitdiff
path: root/net/py-libdnet/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-03-23 00:59:05 +0000
committerjoerg <joerg@pkgsrc.org>2006-03-23 00:59:05 +0000
commit9ceda7ff3cbf4801e947c4a6c876ea71f9528761 (patch)
treef4f73d6d352b66691906738844215dd8be0769ff /net/py-libdnet/patches
parent14b09873ae801ab0ae24a749ad6b10e93add3adc (diff)
downloadpkgsrc-9ceda7ff3cbf4801e947c4a6c876ea71f9528761.tar.gz
Fix errno usage in Python (!) code.
Diffstat (limited to 'net/py-libdnet/patches')
-rw-r--r--net/py-libdnet/patches/patch-ab12
-rw-r--r--net/py-libdnet/patches/patch-ac12
2 files changed, 24 insertions, 0 deletions
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;
+