Ticket #21762: patch-leopard.diff

File patch-leopard.diff, 2.3 KB (added by mklein-de (Michael Klein), 12 years ago)
  • ./src/tap/Makefile

    old new  
    2525        -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"$(TUNTAP_VERSION)\" \
    2626        -DTAP_KEXT_VERSION=\"$(TAP_KEXT_VERSION)\"
    2727CCFLAGS = $(CFLAGS)
    28 LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__ -Xlinker -kext
     28LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__
    2929
    3030CCP = g++
    3131CC = gcc
  • ./src/tun/Makefile

    old new  
    2626        -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"$(TUNTAP_VERSION)\" \
    2727        -DTUN_KEXT_VERSION=\"$(TUN_KEXT_VERSION)\"
    2828CCFLAGS = $(CFLAGS)
    29 LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__ -Xlinker -kext
     29LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__
    3030
    3131CCP = g++
    3232CC = gcc
  • ./src/tuntap.cc

    old new  
    7575}
    7676
    7777errno_t
    78 tuntap_if_ioctl(ifnet_t ifp, long unsigned int cmd, void *arg)
     78tuntap_if_ioctl(ifnet_t ifp, uint32_t cmd, void *arg)
    7979{
    8080        if (ifp != NULL) {
    8181                tuntap_interface *ttif = (tuntap_interface *) ifnet_softc(ifp);
  • ./src/tuntap.h

    old new  
    5454extern "C" {
    5555
    5656errno_t tuntap_if_output(ifnet_t ifp, mbuf_t m);
    57 errno_t tuntap_if_ioctl(ifnet_t ifp, long unsigned int cmd, void *arg);
     57errno_t tuntap_if_ioctl(ifnet_t ifp, uint32_t cmd, void *arg);
    5858errno_t tuntap_if_set_bpf_tap(ifnet_t ifp, bpf_tap_mode mode, int (*cb)(ifnet_t, mbuf_t));
    5959errno_t tuntap_if_demux(ifnet_t ifp, mbuf_t m, char *header, protocol_family_t *proto);
    6060errno_t tuntap_if_framer(ifnet_t ifp, mbuf_t *m, const struct sockaddr *dest,
     
    264264
    265265                /* interface functions. friends and implementation methods */
    266266                friend errno_t tuntap_if_output(ifnet_t ifp, mbuf_t m);
    267                 friend errno_t tuntap_if_ioctl(ifnet_t ifp, long unsigned int cmd, void *arg);
     267                friend errno_t tuntap_if_ioctl(ifnet_t ifp, uint32_t cmd, void *arg);
    268268                friend errno_t tuntap_if_set_bpf_tap(ifnet_t ifp, bpf_tap_mode mode,
    269269                                int (*cb)(ifnet_t, mbuf_t));
    270270                friend errno_t tuntap_if_demux(ifnet_t ifp, mbuf_t m, char *header,