diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-12-11 17:34:02 +0100 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-12-11 17:34:02 +0100 |
commit | 132ef6cb50201cb6ab8ab0609a88ccce62aa6a21 (patch) | |
tree | 0d47c10fa3b9789592c6513286d57a0c010b071f /plugins | |
parent | 2012320d0eed36e0461e44ac9be8cc162c135bf5 (diff) |
initial patches for linux compatibility
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/perl/perl.c | 2 | ||||
-rw-r--r-- | plugins/perl/perl.def | 4 | ||||
-rw-r--r-- | plugins/python/python.c | 6 | ||||
-rw-r--r-- | plugins/tcl/tclplugin.c | 2 | ||||
-rw-r--r-- | plugins/xdcc/xdcc.c | 4 |
5 files changed, 17 insertions, 1 deletions
diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c index a454b43d..a2763771 100644 --- a/plugins/perl/perl.c +++ b/plugins/perl/perl.c @@ -27,7 +27,7 @@ #endif #ifdef WIN32 #include <windows.h> -#define _INC_DIRENT +#define _INC_DIRENT /* disable inclusion of perl's dirent.h, we use an own version for win32 */ #include "../../src/common/dirent.h" #else #include <dirent.h> diff --git a/plugins/perl/perl.def b/plugins/perl/perl.def new file mode 100644 index 00000000..a2ec6566 --- /dev/null +++ b/plugins/perl/perl.def @@ -0,0 +1,4 @@ +EXPORTS + xchat_plugin_init + xchat_plugin_deinit + xchat_plugin_get_info \ No newline at end of file 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" diff --git a/plugins/tcl/tclplugin.c b/plugins/tcl/tclplugin.c index 9289d01d..920a48ad 100644 --- a/plugins/tcl/tclplugin.c +++ b/plugins/tcl/tclplugin.c @@ -32,6 +32,8 @@ static char RCSID[] = "$Id: tclplugin.c,v 1.64 2010/03/10 04:24:16 mooooooo Exp #include <windows.h> #define bzero(mem, sz) memset((mem), 0, (sz)) #define bcopy(src, dest, count) memmove((dest), (src), (count)) +#else +#include <unistd.h> #endif #include "xchat-plugin.h" diff --git a/plugins/xdcc/xdcc.c b/plugins/xdcc/xdcc.c index a8fda540..060dbbe3 100644 --- a/plugins/xdcc/xdcc.c +++ b/plugins/xdcc/xdcc.c @@ -5,6 +5,10 @@ #include <stdlib.h> #include <stdio.h> +#ifndef WIN32 +#include <unistd.h> +#endif + #include "xchat-plugin.h" #include "../../src/common/xchat.h" |