Ticket #26181: sim_ether.c.diff

File sim_ether.c.diff, 1.2 KB (added by tvoverbeek@…, 14 years ago)

patch for sim_ether.c

  • sim_ether.c

    old new  
    138138
    139139  Modification history:
    140140
    141   20-Aug-10  TVO  Fix for Mac OSX 10.6
    142141  17-May-07  DTH  Fixed non-ethernet device removal loop (from Naoki Hamada)
    143142  15-May-07  DTH  Added dynamic loading of wpcap.dll;
    144143                  Corrected exceed max index bug in ethX lookup
     
    631630/*        OpenVMS Alpha uses a WinPcap port and an associated execlet         */
    632631/*============================================================================*/
    633632
    634 #if defined (xBSD) || defined(__APPLE__)
     633#if defined (xBSD) && !defined(__APPLE__)
    635634#include <sys/ioctl.h>
    636635#include <net/bpf.h>
    637636#endif /* xBSD */
     
    976975  }
    977976#endif
    978977#endif /* !defined (USE_READER_THREAD */
    979 #if defined (__APPLE__)
    980   /* Deliver packets immediately, needed for OS X 10.6.2 and later
    981    * (Snow-Leopard).
    982    * See this thread on libpcap and Mac Os X 10.6 Snow Leopard on
    983    * the tcpdump mailinglist: http://seclists.org/tcpdump/2010/q1/110
    984    */
    985   int v = 1;
    986   ioctl(pcap_fileno(dev->handle), BIOCIMMEDIATE, &v);
    987 #endif
    988978  return SCPE_OK;
    989979}
    990980