密猟オンラインサーバープログラム
Win32環境下コンパイル可能なようにport.h修正
同じくWin32環境下でNMAKEを用いてVisualCでビルドするメイクファイルを追加
| @@ -32,6 +32,7 @@ | ||
| 32 | 32 | |
| 33 | 33 | #elif defined(MAKEWIN32) |
| 34 | 34 | #define STRICT |
| 35 | +#include <winsock2.h> | |
| 35 | 36 | #include <windows.h> |
| 36 | 37 | #include <stdio.h> |
| 37 | 38 | #include <mbstring.h> |
| @@ -55,6 +56,11 @@ | ||
| 55 | 56 | } |
| 56 | 57 | #define cleanup_socket_interface() {\ |
| 57 | 58 | WSACleanup(); } |
| 59 | + | |
| 60 | +/* win32 no have 'socklen_t' */ | |
| 61 | +#define socklen_t int | |
| 62 | + | |
| 63 | + | |
| 58 | 64 | #else |
| 59 | 65 | #error NEED enviroment-type! |
| 60 | 66 | #endif |