summary refs log tree commit diff stats
path: root/plugins/python/python.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-12-11 17:34:02 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-12-11 17:34:02 +0100
commit132ef6cb50201cb6ab8ab0609a88ccce62aa6a21 (patch)
tree0d47c10fa3b9789592c6513286d57a0c010b071f /plugins/python/python.c
parent2012320d0eed36e0461e44ac9be8cc162c135bf5 (diff)
initial patches for linux compatibility
Diffstat (limited to 'plugins/python/python.c')
-rw-r--r--plugins/python/python.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 55adf989..3c535057 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -55,8 +55,14 @@
 #include <string.h>
 #include <stdlib.h>
 #include <sys/types.h>
+
+#ifdef WIN32
 #include "../../src/common/dirent.h"
 #include "../../config.h"
+#else
+#include <unistd.h>
+#include <dirent.h>
+#endif
 
 #include "xchat-plugin.h"
 #include "Python.h"