Ticket #30730: 0002-fix-for-tap-interface.patch

File 0002-fix-for-tap-interface.patch, 1.7 KB (added by andy@…, 13 years ago)
  • dports/emulators/qemu/Portfile

    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 \ 
    2222                    sha1    57a7269b58544054a90b158225fce05fe1d04a85 \
    2323                    rmd160  f33048765e48e1dc6413ef079df99944b2329211
    2424
    25 patchfiles              patch-configure.diff
     25patchfiles              patch-configure.diff tap-bsd.diff
    2626
    2727depends_build           port:texinfo
    2828depends_lib             port:curl \
  • new file dports/emulators/qemu/files/tap-bsd.diff

    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];