From 845c4915bf51d4d670f527275b99c7423708bbfc Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Wed, 30 Nov 2011 03:40:07 +0100 Subject: plugin config unix compatibility part 1 --- src/common/plugin.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/common/plugin.c') diff --git a/src/common/plugin.c b/src/common/plugin.c index 7bc39400..45109ee2 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -23,6 +23,12 @@ #include #include +#ifdef WIN32 +#include +#else +#include +#endif + #include "xchat.h" #include "fe.h" #include "util.h" @@ -1686,7 +1692,7 @@ xchat_get_plugin_pref (xchat_plugin *pl, char *var, char *dest) g_free (canon); /* partly borrowed from palette.c */ - fh = xchat_open_file (confname, _O_RDONLY, 0, 0); + fh = xchat_open_file (confname, O_RDONLY, 0, 0); if (fh == -1) { -- cgit 1.4.1