From: Volker R. <vru...@us...> - 2006-08-05 14:42:51
|
Update of /cvsroot/bochs/bochs/iodev In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6886/iodev Modified Files: eth_vde.cc Log Message: - fixed compile error on FreeBSD 5.4 (tested with SF compile farm) Index: eth_vde.cc =================================================================== RCS file: /cvsroot/bochs/bochs/iodev/eth_vde.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- eth_vde.cc 23 Mar 2006 18:28:40 -0000 1.12 +++ eth_vde.cc 5 Aug 2006 14:42:47 -0000 1.13 @@ -41,13 +41,17 @@ #include <sys/poll.h> #include <sys/time.h> #include <sys/resource.h> -#include <asm/types.h> #include <sys/socket.h> +#if defined(__linux__) +#include <asm/types.h> +#include <linux/netlink.h> +#include <linux/if.h> +#elif BX_HAVE_NET_IF_H +#include <net/if.h> +#endif #include <sys/uio.h> #include <sys/wait.h> #include <sys/un.h> -#include <linux/netlink.h> -#include <linux/if.h> #include <assert.h> #include <fcntl.h> #include <errno.h> |