mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
Add WSAStartup to iodined
This commit is contained in:
parent
ead9c5da8a
commit
80ae712a6f
1 changed files with 9 additions and 0 deletions
|
@ -59,6 +59,11 @@
|
|||
#include "fw_query.h"
|
||||
#include "version.h"
|
||||
|
||||
#ifdef WINDOWS32
|
||||
WORD req_version = MAKEWORD(1, 1);
|
||||
WSADATA wsa_data;
|
||||
#endif
|
||||
|
||||
static int running = 1;
|
||||
static char *topdomain;
|
||||
static char password[33];
|
||||
|
@ -944,6 +949,10 @@ main(int argc, char **argv)
|
|||
netmask = 27;
|
||||
|
||||
b32 = get_base32_encoder();
|
||||
|
||||
#ifdef WINDOWS32
|
||||
WSAStartup(req_version, &wsa_data);
|
||||
#endif
|
||||
|
||||
#if !defined(BSD) && !defined(__GLIBC__)
|
||||
__progname = strrchr(argv[0], '/');
|
||||
|
|
Loading…
Reference in a new issue