Skip to content

Commit

Permalink
network: fix tcp/ip headers for WIN32
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Dec 16, 2016
1 parent e907093 commit e3f54e9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/flb_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <errno.h>

#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <errno.h>
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <arpa/inet.h>
#endif

#include <monkey/mk_core.h>
#include <fluent-bit/flb_info.h>
Expand Down

0 comments on commit e3f54e9

Please sign in to comment.