Ignore:
Timestamp:
Dec 7, 2011, 9:23:01 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #282 (compile issues on FreeBSD).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_port2proc.c

    r315 r384  
    802802                                continue;
    803803                } else if (inp->inp_vflag & INP_IPV6) {
     804#ifndef in6p_fport
     805#define in6p_fport inp_fport
     806#endif
    804807                        if ((inp->in6p_fport == 0 && !opt_l) ||
    805808                            (inp->in6p_fport != 0 && !opt_c))
     
    822825                memset(sock, '\0', sizeof (*sock));
    823826
     827#ifndef in6p_lport
     828#define in6p_lport inp_lport
     829#endif
    824830                sock->socket = so->xso_so;
    825831                sock->proto = proto;
     
    917923  int n, hash;
    918924  struct xfile *xf;
    919   struct in_addr  * haddr;
    920   struct in6_addr * haddr6;
     925  struct in_addr  * haddr  = NULL;
     926  struct in6_addr * haddr6 = NULL;
    921927  struct sock * s;
    922928  struct in6_addr   anyaddr = IN6ADDR_ANY_INIT;
Note: See TracChangeset for help on using the changeset viewer.