summary refs log tree commit diff stats
path: root/plugins/python
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-15 22:57:27 -0500
committerTingPing <tingping@tingping.se>2014-12-17 18:21:10 -0500
commitaeb5d15871cca7fe5eba806431b4e63fee015a94 (patch)
tree767d8f2892834e930f81b0ebb9bb2de44fd61bca /plugins/python
parent76c2cfebc35a007cbbd3ae3ab66b64799fd62f8e (diff)
More consistently include config.h
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/python.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index d662557d..f0e4aa72 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -51,6 +51,8 @@
  *
  */
 
+#include "config.h"
+
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <string.h>
@@ -64,9 +66,9 @@
 #include <dirent.h>
 #endif
 
-#include "../../config.h"
 #include "hexchat-plugin.h"
-#undef _POSIX_C_SOURCE	/* Avoid warning: also in /usr/include/features.h from glib.h */
+#undef _POSIX_C_SOURCE	/* Avoid warnings from /usr/include/features.h */
+#undef _XOPEN_SOURCE
 #include <Python.h>
 #include <structmember.h>
 #include <pythread.h>