[5140] hw/pcnet.c: windows compile fix
Revision: 5140
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5140 Author: aurel32 Date: 2008-09-02 23:26:13 +0000 (Tue, 02 Sep 2008)
Log Message:
-----------hw/pcnet.c: windows compile fix
(Eduardo Felipe)
Modified Paths:
--------------
trunk/hw/pcnet.c
Modified: trunk/hw/pcnet.c
===================================================================
hw/pcnet.c +4 -0
@@ -35,7 +35,11 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ +#ifdef _WIN32 +#include <winsock2.h> +#else #include <netinet/in.h> +#endif #include "hw.h" #include "pci.h"
Hi,
Quoted 15 lines · Aurelien Jarno
Log Message:
-----------hw/pcnet.c: windows compile fix(Eduardo Felipe)
Modified Paths:
--------------
trunk/hw/pcnet.cModified:
trunk/hw/pcnet.c
===================================================================
hw/pcnet.c line 42
Quoted 8 lines
hw/pcnet.c +4
-0@@ -35,7 +35,11 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ +#ifdef _WIN32 +#include <winsock2.h> +#else #include <netinet/in.h> +#endif
Was the idea not to use the header file "qemu_socket.h" instead?
Just for future reference,
Dscho
Quoted 22 lines · Johannes Schindelin
Hi,
Quoted 18 lines · Aurelien Jarno
Log Message:
-----------hw/pcnet.c: windows compile fix(Eduardo Felipe)
Modified Paths:
--------------
trunk/hw/pcnet.cModified:
trunk/hw/pcnet.c
===================================================================hw/pcnet.c +0
-0@@ -35,7 +35,11 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */
Quoted 7 lines
hw/pcnet.c line 42
Quoted 5 lines
hw/pcnet.c +4
-0+#ifdef _WIN32 +#include <winsock2.h> +#else #include <netinet/in.h> +#endif Was the idea not to use the header file "
qemu_socket.h" instead?
Sounds reasonable to me.
Jan
hw/pcnet.c +1 -6
@@ -35,16 +35,11 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ -#ifdef _WIN32 -#include <winsock2.h> -#else -#include <netinet/in.h> -#endif -#include "hw.h" #include "pci.h" #include "net.h" #include "qemu-timer.h" +#include "qemu_socket.h" //#define PCNET_DEBUG //#define PCNET_DEBUG_IO
Aurelien Jarno
AppliedQuoted 31 lines · Jan Kiszka
Quoted 22 lines · Johannes Schindelin
Hi,
Quoted 18 lines · Aurelien Jarno
Log Message:
-----------hw/pcnet.c: windows compile fix(Eduardo Felipe)
Modified Paths:
--------------
trunk/hw/pcnet.cModified:
trunk/hw/pcnet.c
===================================================================hw/pcnet.c +0
-0@@ -35,7 +35,11 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ Quoted 7 lines
hw/pcnet.c line 42
Quoted 5 lines
hw/pcnet.c +4
-0+#ifdef _WIN32 +#include <winsock2.h> +#else #include <netinet/in.h> +#endif Was the idea not to use the header file "
qemu_socket.h" instead?
Quoted 1 line
Sounds reasonable to me.
Applied, thanks.
Quoted 25 lines
Jan
Index:
qemu/hw/pcnet.c
===================================================================hw/pcnet.c +1
-6@@ -35,16 +35,11 @@* http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR92C990.txt */ -#ifdef _WIN32 -#include <winsock2.h> -#else -#include <netinet/in.h> -#endif -#include "hw.h" #include "pci.h" #include "net.h" #include "qemu-timer.h" +#include "qemu_socket.h" //#define PCNET_DEBUG //#define PCNET_DEBUG_IO
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net