1
0
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:
Adam
2011-08-10 01:32:07 -04:00
parent 13bcc4ef14
commit ded98ed3de
11 changed files with 37 additions and 17 deletions
+14 -1
View File
@@ -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