Skip to content

Commit

Permalink
slirp: fix build on mingw32
Browse files Browse the repository at this point in the history
in_addr_t isn't available on mingw32.  Just use an unsigned long instead.  I
considered typedef'ing in_addr_t on mingw32 but this would potentially be
brittle if mingw32 did introduce the type.

Cc: Jan Kiszka <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
Anthony Liguori committed Aug 7, 2012
1 parent 26b9b5f commit 0b8db8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slirp/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern char *exec_shell;
extern u_int curtime;
extern fd_set *global_readfds, *global_writefds, *global_xfds;
extern struct in_addr loopback_addr;
extern in_addr_t loopback_mask;
extern unsigned long loopback_mask;
extern char *username;
extern char *socket_path;
extern int towrite_max;
Expand Down
2 changes: 1 addition & 1 deletion slirp/slirp.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/* host loopback address */
struct in_addr loopback_addr;
/* host loopback network mask */
in_addr_t loopback_mask;
unsigned long loopback_mask;

/* emulated hosts use the MAC addr 52:55:IP:IP:IP:IP */
static const uint8_t special_ethaddr[ETH_ALEN] = {
Expand Down

0 comments on commit 0b8db8f

Please sign in to comment.