qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Tim Douglas <timdoug@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] OSX in_addr compile fix
Date: Thu, 26 Aug 2004 12:55:01 -0400	[thread overview]
Message-ID: <1f1698a604082609552f049d1e@mail.gmail.com> (raw)

[-- 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>

                 reply	other threads:[~2004-08-26 17:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f1698a604082609552f049d1e@mail.gmail.com \
    --to=timdoug@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).