Skip to content

Commit e56f09a

Browse files
Make the example compilable for Windows
1 parent 1dd8417 commit e56f09a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/client_server.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#include <stdio.h>
22
#include <stdlib.h>
3-
#include <unistd.h>
4-
#include <arpa/inet.h>
3+
#ifdef _WIN32
4+
#include <ws2tcpip.h>
5+
#pragma comment(lib, "ws2_32.lib")
6+
#else
7+
#include <arpa/inet.h>
8+
#endif
59

610
#include "../src/proxy_protocol.h"
711

0 commit comments

Comments
 (0)