summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/plugin.c8
-rw-r--r--src/version-script2
2 files changed, 9 insertions, 1 deletions
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 <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)
 	{
diff --git a/src/version-script b/src/version-script
index 048c1f55..e747958b 100644
--- a/src/version-script
+++ b/src/version-script
@@ -30,5 +30,7 @@ EXPORTED {
 		xchat_send_modes;
 		xchat_strip;
 		xchat_free;
+		xchat_set_plugin_pref;
+		xchat_get_plugin_pref;
 	local: *;
 };