Skip to contentSkip to conversation

w32: Fix compilation (wrong include file)

PATCH Applied Stefan Weil 3 participants 3 messages Apr 3, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 w32: Fix compilation (wrong include file)

arpa/inet.h is not available for w32, so commit
edbb21363fbfe40e050f583df921484cbc31c79d breaks
w32 compilations.

This is fixed by using qemu_socket.h.

---
 hw/ccid-card-passthru.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
hw/ccid-card-passthru.c +1 -2
index 8506fed..28eb9d1 100644
@@ -8,9 +8,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <arpa/inet.h>
-
 #include "qemu-char.h"
+#include "qemu_socket.h"
 #include "monitor.h"
 #include "hw/ccid.h"
 #include "libcacard/vscard_common.h"
Signature · 1 line
1.7.0.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Stefan Weil

arpa/inet.h is not available for w32, so commit
edbb21363fbfe40e050f583df921484cbc31c79d breaks
w32 compilations.

This is fixed by using qemu_socket.h.

Thanks, missed that.

Quoted 24 lines
---
 hw/ccid-card-passthru.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
hw/ccid-card-passthru.c +1 -2
index 8506fed..28eb9d1 100644
@@ -8,9 +8,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <arpa/inet.h>
-
 #include "qemu-char.h"
+#include "qemu_socket.h"
 #include "monitor.h"
 #include "hw/ccid.h"
 #include "libcacard/vscard_common.h"
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to Stefan Weil
Quoted 11 lines · Stefan Weil

arpa/inet.h is not available for w32, so commit
edbb21363fbfe40e050f583df921484cbc31c79d breaks
w32 compilations.

This is fixed by using qemu_socket.h.

---
 hw/ccid-card-passthru.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Thanks, applied.

Quoted 20 lines
hw/ccid-card-passthru.c +1 -2
index 8506fed..28eb9d1 100644
@@ -8,9 +8,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <arpa/inet.h>
-
 #include "qemu-char.h"
+#include "qemu_socket.h"
 #include "monitor.h"
 #include "hw/ccid.h"
 #include "libcacard/vscard_common.h"
Signature · 1 line
1.7.0.4
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net