aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
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()