Revision 56920663

View differences:

chunker_player/tcp_chunk_puller.c
41 41
	struct sockaddr_in servaddr;
42 42
	int r;
43 43
	int fd;
44

  
45
#ifdef _WIN32
46
	{
47
		WORD wVersionRequested;
48
		WSADATA wsaData;
49
		int err;
50

  
51
		wVersionRequested = MAKEWORD(2, 2);
52
		err = WSAStartup(wVersionRequested, &wsaData);
53
		if (err != 0) {
54
			fprintf(stderr, "WSAStartup failed with error: %d\n", err);
55
			return NULL;
56
		}
57
	}
58
#endif
44 59
  
45 60
	accept_fd = socket(AF_INET, SOCK_STREAM, 0);
46 61
	if (accept_fd < 0) {

Also available in: Unified diff