slight updates for win32...

This commit is contained in:
gbeauche 2006-04-29 10:54:12 +00:00
parent f0d77218c8
commit 08b783d52b
2 changed files with 7 additions and 2 deletions

View File

@ -20,11 +20,11 @@ int slirp_select_fill(int *pnfds,
void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds); void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds);
void slirp_input(const uint8_t *pkt, int pkt_len); void slirp_input(const uint8 *pkt, int pkt_len);
/* you must provide the following functions: */ /* you must provide the following functions: */
int slirp_can_output(void); int slirp_can_output(void);
void slirp_output(const uint8_t *pkt, int pkt_len); void slirp_output(const uint8 *pkt, int pkt_len);
int slirp_redir(int is_udp, int host_port, int slirp_redir(int is_udp, int host_port,
struct in_addr guest_addr, int guest_port); struct in_addr guest_addr, int guest_port);

View File

@ -86,6 +86,11 @@ typedef unsigned char u_int8_t;
# endif # endif
#endif /* NEED_TYPEDEFS */ #endif /* NEED_TYPEDEFS */
/* Basilisk II types glue */
typedef u_int8_t uint8;
typedef u_int16_t uint16;
typedef u_int32_t uint32;
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif