瀏覽代碼

* Added Winsock (c)(tm)(r) compatibility

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 18 年之前
父節點
當前提交
0890243547
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. +11
    -0
      src/cacaserver.c

+ 11
- 0
src/cacaserver.c 查看文件

@@ -121,6 +121,14 @@ int main(void)
struct server *server;
char *tmp;

#ifdef HAVE_WINDOWS_H
WORD winsockVersion;
WSADATA wsaData;
int nret;
winsockVersion = MAKEWORD(1, 1);

WSAStartup(winsockVersion, &wsaData);
#endif
server = malloc(sizeof(struct server));

server->input = malloc(12);
@@ -262,6 +270,9 @@ int main(void)

free(server);

#ifdef HAVE_WINDOWS_H
WSACleanup();
#endif
return 0;
}



Loading…
取消
儲存