Skip to content

Commit

Permalink
include sys/socket.h for socket() and SOCK_DGRAM
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
andreygursky authored and jbkempf committed May 11, 2016
1 parent bc39285 commit 8d6e941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/netbios_ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
#ifdef _WIN32
# include <winsock2.h>
# include <ws2tcpip.h>
#else
# include <sys/socket.h>
#endif

#include <bdsm/netbios_ns.h>
Expand Down
3 changes: 3 additions & 0 deletions src/netbios_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifndef _WIN32
#include <sys/socket.h>
#else

#include "bdsm_debug.h"
#include "netbios_session.h"
Expand Down

0 comments on commit 8d6e941

Please sign in to comment.