diff options
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r-- | src/win32/windows.cpp | 15 |
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 |