mirror of
https://github.com/anope/anope.git
synced 2026-07-02 13:33:12 +02:00
Fixed windows build
This commit is contained in:
+14
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user