]> git.ipfire.org Git - people/stevee/pakfire.git/blobdiff - src/_pakfire/_pakfiremodule.c
Use autotools.
[people/stevee/pakfire.git] / src / _pakfire / _pakfiremodule.c
similarity index 99%
rename from python/src/_pakfiremodule.c
rename to src/_pakfire/_pakfiremodule.c
index c208634919ffe1e8ba609d91274c71b961af250a..04a321b6d9971918deefdd1da0c5960d3048cf02 100644 (file)
 #                                                                             #
 #############################################################################*/
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
 #include <Python.h>
 
+#include <libintl.h>
 #include <locale.h>
 #include <sched.h>
 #include <sys/personality.h>
 
 #include "capabilities.h"
-#include "config.h"
+#include "constants.h"
 #include "pool.h"
 #include "problem.h"
 #include "relation.h"
@@ -196,8 +193,8 @@ static PyMethodDef Transaction_methods[] = {
 void init_pakfire(void) {
        /* Initialize locale */
        setlocale(LC_ALL, "");
-       bindtextdomain(TEXTDOMAIN, "/usr/share/locale");
-       textdomain(TEXTDOMAIN);
+       bindtextdomain(PACKAGE_TARNAME, "/usr/share/locale");
+       textdomain(PACKAGE_TARNAME);
 
        /* Load the python module */
        PyObject *m, *d;