summaryrefslogtreecommitdiff
path: root/slirp/main.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-08-06 19:31:55 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-08-06 19:31:55 -0500
commit0b8db8fe15d17a529a5ea90614c11e9f031dfee8 (patch)
tree47aa6488a762eed15cec747aecd764d15946b76e /slirp/main.h
parent26b9b5fe17cc1b6be2e8bf8b9d16094f420bb8ad (diff)
downloadqemu-0b8db8fe15d17a529a5ea90614c11e9f031dfee8.tar.gz
slirp: fix build on mingw32
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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/main.h')
-rw-r--r--slirp/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/main.h b/slirp/main.h
index bf601e223d..1f3b84de92 100644
--- a/slirp/main.h
+++ b/slirp/main.h
@@ -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;