From 889cdddc89136721f6c7bd0ee0a083a5690b6cab Mon Sep 17 00:00:00 2001
From: Andreas Boeckler <abo@netlands.de>
Date: Fri, 12 Aug 2011 13:13:27 +0200
Subject: [PATCH 2/2] fix for tap-interface
---
dports/emulators/qemu/Portfile | 2 +-
dports/emulators/qemu/files/tap-bsd.diff | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
create mode 100644 dports/emulators/qemu/files/tap-bsd.diff
diff --git a/dports/emulators/qemu/Portfile b/dports/emulators/qemu/Portfile
index f34ff01..6bfae77 100644
a
|
b
|
checksums md5 dbc55b014bcd21b98e347f6a90f7fb6d \ |
22 | 22 | sha1 57a7269b58544054a90b158225fce05fe1d04a85 \ |
23 | 23 | rmd160 f33048765e48e1dc6413ef079df99944b2329211 |
24 | 24 | |
25 | | patchfiles patch-configure.diff |
| 25 | patchfiles patch-configure.diff tap-bsd.diff |
26 | 26 | |
27 | 27 | depends_build port:texinfo |
28 | 28 | depends_lib port:curl \ |
diff --git a/dports/emulators/qemu/files/tap-bsd.diff b/dports/emulators/qemu/files/tap-bsd.diff
new file mode 100644
index 0000000..6d35e63
-
|
+
|
|
| 1 | --- net/tap-bsd.c |
| 2 | +++ net/tap-bsd.c |
| 3 | @@ -43,7 +43,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr, int vnet_hdr_required |
| 4 | char *dev; |
| 5 | struct stat s; |
| 6 | |
| 7 | -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) |
| 8 | +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__APPLE__) |
| 9 | /* if no ifname is given, always start the search from tap0/tun0. */ |
| 10 | int i; |
| 11 | char dname[100]; |