No slirp usage
Hi.
If I compiling without SLIRP then compiler produced warnings:
vl.c: In function `parse_host_port':vl.c: warning: implicit declaration of function inet_aton' vl.c: In function net_socket_mcast_create':vl.c: warning: implicit declaration of function `inet_ntoa'
Patch attached.
comment: removed lines from libslirp.h duplicated from slirp.h.
PS: if you interested new my nosdl.c hack, this updated for fresh qemu-devel ftp://ftp.simtreas.ru/pub/my/qemu/nosdl.c.gz
--w
vodz
slirp/libslirp.h +0 -8
@@ -1,14 +1,6 @@ #ifndef _LIBSLIRP_H #define _LIBSLIRP_H -#ifdef _WIN32 -#include <winsock2.h> -int inet_aton(const char *cp, struct in_addr *ia); -#else -#include <sys/select.h> -#include <arpa/inet.h> -#endif - #ifdef __cplusplus extern "C" { #endif
vl.c +5 -1
@@ -42,6 +42,8 @@#include <netinet/in.h> #include <dirent.h> #include <netdb.h> +#include <sys/select.h> +#include <arpa/inet.h> #ifdef _BSD#include <sys/stat.h> #ifndef __APPLE__
@@ -63,7 +65,6 @@#include <sys/stat.h> #include <sys/ethernet.h> #include <sys/sockio.h> -#include <arpa/inet.h> #include <netinet/arp.h> #include <netinet/in.h> #include <netinet/in_systm.h>
@@ -76,6 +77,9 @@#include <stropts.h> #endif #endif +#else +#include <winsock2.h> +int inet_aton (const char *cp,struct in_addr *ia);#endif #if defined(CONFIG_SLIRP )