Skip to content

Instantly share code, notes, and snippets.

@unhammer
Created December 16, 2010 14:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unhammer/743475 to your computer and use it in GitHub Desktop.
Save unhammer/743475 to your computer and use it in GitHub Desktop.
patch to make pylibtextcat run on Arch Linux
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