Created
December 16, 2010 14:52
-
-
Save unhammer/743475 to your computer and use it in GitHub Desktop.
patch to make pylibtextcat run on Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN original/pylibtextcat-0.1//libtextcat.c pylibtextcat-0.1//libtextcat.c | |
--- original/pylibtextcat-0.1//libtextcat.c 2008-06-18 01:26:04.000000000 +0200 | |
+++ pylibtextcat-0.1//libtextcat.c 2010-12-16 15:35:27.560001525 +0100 | |
@@ -1,4 +1,4 @@ | |
-#include <libtextcat/textcat.h> | |
+#include <textcat.h> | |
#include "libtextcat.h" | |
static const char __author__[] = | |
@@ -32,7 +32,7 @@ libTextCat_init(libTextCatObject *self, | |
Py_INCREF(pyPrefix); | |
PyString_ConcatAndDel(&pyPrefix, PyString_FromString("/")); | |
prefix = PyString_AsString(pyPrefix); | |
- self->handle = special_textcat_Init(conffile, prefix); | |
+ self->handle = textcat_Init(conffile); | |
Py_DECREF(pyPrefix); | |
if(self->handle == NULL){ | |
PyErr_SetString(PyExc_Exception, "cannot read config file or fingerprint files listed in it."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment