aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-25 22:36:06 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-25 22:36:06 +0000
commitec530c81efea6ddb1f75758658fd6769a29c3ade (patch)
tree2d8afdd2021666eaf854195ed0a32603b97044f5 /slirp
parent96b74a0221a7d552a4b3016af2b8bc87628fdab3 (diff)
downloadqemu-ec530c81efea6ddb1f75758658fd6769a29c3ade.zip
qemu-ec530c81efea6ddb1f75758658fd6769a29c3ade.tar.gz
qemu-ec530c81efea6ddb1f75758658fd6769a29c3ade.tar.bz2
Solaris port (Ben Taylor)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1855 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp')
-rw-r--r--slirp/slirp_config.h3
-rw-r--r--slirp/socket.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/slirp/slirp_config.h b/slirp/slirp_config.h
index a0795ef..e7e95dd 100644
--- a/slirp/slirp_config.h
+++ b/slirp/slirp_config.h
@@ -138,6 +138,9 @@
/* Define if you don't have u_int32_t etc. typedef'd */
#undef NEED_TYPEDEFS
+#ifdef __sun__
+#define NEED_TYPEDEFS
+#endif
/* Define to sizeof(char) */
#define SIZEOF_CHAR 1
diff --git a/slirp/socket.c b/slirp/socket.c
index fbd9e96..ce6528f 100644
--- a/slirp/socket.c
+++ b/slirp/socket.c
@@ -9,6 +9,9 @@
#include <slirp.h>
#include "ip_icmp.h"
#include "main.h"
+#ifdef __sun__
+#include <sys/filio.h>
+#endif
void
so_init()