lbry-fdroid/recipes/python2/patches/modules-locales-2.7.13.patch

28 lines
674 B
Diff
Raw Normal View History

2017-08-13 03:24:00 +02:00
--- Python-2.7.9/Modules/_localemodule.c.orig 2013-05-12 05:32:50.000000000 +0200
+++ Python-2.7.9/Modules/_localemodule.c 2015-05-02 21:33:42.241092717 +0200
@@ -20,6 +20,8 @@ This software comes with no warranty. Us
#include <errno.h>
#endif
+#define ANDROID
+
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif
@@ -205,6 +207,7 @@ PyDoc_STRVAR(localeconv__doc__,
static PyObject*
PyLocale_localeconv(PyObject* self)
{
+ #ifndef ANDROID
PyObject* result;
struct lconv *l;
PyObject *x;
@@ -265,6 +268,7 @@ PyLocale_localeconv(PyObject* self)
failed:
Py_XDECREF(result);
Py_XDECREF(x);
+ #endif // ANDROID
return NULL;
}