plugin config unix compatibility part 1

This commit is contained in:
Berke Viktor 2011-11-30 03:40:07 +01:00
parent ab3e3926ab
commit 845c4915bf
2 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,12 @@
#include <fcntl.h>
#include <sys/stat.h>
#ifdef WIN32
#include <io.h>
#else
#include <unistd.h>
#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)
{

View File

@ -30,5 +30,7 @@ EXPORTED {
xchat_send_modes;
xchat_strip;
xchat_free;
xchat_set_plugin_pref;
xchat_get_plugin_pref;
local: *;
};