1 | --- agent/mibgroup/mibII/udpTable.c Tue Jun 8 13:50:31 2004 |
---|
2 | +++ agent/mibgroup/mibII/udpTable.c Tue Jul 13 13:26:18 2004 |
---|
3 | @@ -66,7 +66,7 @@ |
---|
4 | #define INP_NEXT_SYMBOL inp_next |
---|
5 | #endif |
---|
6 | |
---|
7 | -#ifdef freebsd4 |
---|
8 | +#if (defined(freebsd4) || defined(darwin)) |
---|
9 | typedef struct netsnmp_inpcb_s netsnmp_inpcb; |
---|
10 | struct netsnmp_inpcb_s { |
---|
11 | struct inpcb pcb; |
---|
12 | @@ -623,7 +623,7 @@ |
---|
13 | nnew = SNMP_MALLOC_TYPEDEF(UDPTABLE_ENTRY_TYPE); |
---|
14 | if (!nnew) |
---|
15 | break; |
---|
16 | -#ifdef freebsd4 |
---|
17 | +#if (defined(freebsd4) || defined(darwin)) |
---|
18 | memcpy(nnew, &((struct xinpcb *) xig)->xi_inp, sizeof(struct inpcb)); |
---|
19 | nnew->inp_next = udp_head; |
---|
20 | #else |
---|