mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
23 lines
561 B
Plaintext
23 lines
561 B
Plaintext
$NetBSD: patch-ac,v 1.2 2014/10/20 19:11:23 drochner Exp $
|
|
|
|
fix for Python-2.6
|
|
|
|
--- libxml_wrap.h.orig 2014-10-03 09:00:54.000000000 +0000
|
|
+++ libxml_wrap.h
|
|
@@ -28,7 +28,6 @@
|
|
* and don't use Capsule but CObjects
|
|
*/
|
|
#if PY_VERSION_HEX < 0x02070000
|
|
-#ifndef PyBytes_Check
|
|
#define PyBytes_Check PyString_Check
|
|
#define PyBytes_Size PyString_Size
|
|
#define PyBytes_AsString PyString_AsString
|
|
@@ -40,7 +39,6 @@
|
|
#define PyCapsule_CheckExact PyCObject_Check
|
|
#define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))
|
|
#endif
|
|
-#endif
|
|
|
|
/**
|
|
* ATTRIBUTE_UNUSED:
|