summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53/files/patch-interface_ioctl.c
blob: 4939166949bed621df68c795d388406035d09a00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./agent/mibgroup/if-mib/data_access/interface_ioctl.c.orig	Mon Oct 25 12:57:23 2004
+++ ./agent/mibgroup/if-mib/data_access/interface_ioctl.c	Mon Oct 25 12:56:33 2004
@@ -385,6 +385,10 @@
     if (rc < 0)
         return 0;
 
+#if defined(__FreeBSD__)
+    return ifrq.ifr_index;
+#else
     return ifrq.ifr_ifindex;
+#endif
 #endif /* SIOCGIFINDEX */
 }