All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] OSX in_addr compile fix
@ 2004-08-26 16:55 Tim Douglas
  0 siblings, 0 replies; only message in thread
From: Tim Douglas @ 2004-08-26 16:55 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 135 bytes --]

Mac OS X needs to include netinet/in.h for in_addr, used in the new
port redirection patch. Attached is a patch that fixes this.

-Tim

[-- Attachment #2: osx-in_addr.patch --]
[-- Type: application/octet-stream, Size: 467 bytes --]

Index: vl.c
===================================================================
RCS file: /cvsroot/qemu/qemu/vl.c,v
retrieving revision 1.95
diff -u -r1.95 vl.c
--- vl.c	25 Aug 2004 22:12:49 -0000	1.95
+++ vl.c	26 Aug 2004 16:51:14 -0000
@@ -64,6 +64,11 @@
 #define memalign(align, size) malloc(size)
 #endif
 
+/* OSX needs another header for in_addr */
+#ifdef __APPLE__
+#include <netinet/in.h>
+#endif
+
 #ifdef CONFIG_SDL
 #ifdef __APPLE__
 #include <SDL/SDL.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-26 17:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-26 16:55 [Qemu-devel] [PATCH] OSX in_addr compile fix Tim Douglas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.