qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Patch for qemu-0.9.1/slirp/misc.c:getouraddr


From: Wan-Teh Chang
Subject: [Qemu-devel] Patch for qemu-0.9.1/slirp/misc.c:getouraddr
Date: Fri, 7 Nov 2008 10:42:46 -0800

Attached is a patch for qemu-0.9.1/slirp/misc.c to implement
the getouraddr() function using the BSD function getifaddrs(),
which is also available in glibc on Linux.

This patch does not include the necessary change to define
HAVE_GETIFADDRS on the platforms that have getifaddrs().
You will need to either use an autoconf test for getifaddrs(),
or do something like

  #if defined(__GLIBC__) || defined(__FreeBSD__) ||
defined(__NetBSD__) || defined(__OpenBSD__)
  #define HAVE_GETIFADDRS 1
  #endif

at the top of the qemu-0.9.1/slirp/misc.c file.

Wan-Teh Chang

Attachment: getouraddr.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]