summaryrefslogtreecommitdiff
path: root/src/win32/windows.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-10 01:32:07 -0400
committerAdam <Adam@anope.org>2011-08-10 01:32:07 -0400
commitded98ed3ded63aa37b7226cd7228b375df8b33e3 (patch)
tree83e728dddd3b886d198908979a72916727d71ad1 /src/win32/windows.cpp
parent13bcc4ef14c0c61e8ed578ac9346291ae731b8df (diff)
Fixed windows build
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r--src/win32/windows.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp
index 265b5601b..60edaffbc 100644
--- a/src/win32/windows.cpp
+++ b/src/win32/windows.cpp
@@ -34,7 +34,7 @@ WindowsLanguage WindowsLanguages[] = {
{NULL, 0}
};
-WSADATA SocketEngine::wsa;
+WSADATA wsa;
void OnStartup()
{
@@ -302,4 +302,17 @@ bool SupportedWindowsVersion()
return false;
}
+int mkstemp(char *input)
+{
+ input = _mktemp(input);
+ if (input == NULL)
+ {
+ errno = EEXIST;
+ return -1;
+ }
+
+ int fd = open(input, O_WRONLY | O_CREAT, S_IREAD | S_IWRITE);
+ return fd;
+}
+
#endif