ports/devel/py-lxml/files/patch-src-lxml_lxml.etree.c
Ruslan Makhmatkhanov 9fe9d71c52 - update to 2.3.4
- strict versions of FreeBSD that needs xlocale patch (it builds fine w/o patch
  after OSVERSION >= 1000010)

changelog: http://lxml.de/2.3/changes-2.3.4.html

PR:		166563
Submitted by:	rm (myself)
Approved by:	Robert Gogolok <gogo at cs.uni-sb dot de> (maintainer)
Feature safe:	yes
2012-04-07 20:19:24 +00:00

15 lines
438 B
C

--- ./src/lxml/lxml.etree.c.orig 2012-03-26 14:31:59.000000000 +0400
+++ ./src/lxml/lxml.etree.c 2012-04-01 22:49:13.000000000 +0400
@@ -1,5 +1,12 @@
/* Generated by Cython 0.15.1 on Mon Mar 26 12:31:57 2012 */
+#if defined(__FreeBSD__)
+#include <sys/param.h>
+#if (__FreeBSD_version >= 1000000 && __FreeBSD_version < 1000010)
+#include <locale.h>
+#endif
+#endif
+
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H