$OpenBSD: patch-agent_mibgroup_if-mib_data_access_interface_sysctl_c,v 1.3 2010/09/21 10:43:04 sthen Exp $
--- agent/mibgroup/if-mib/data_access/interface_sysctl.c.orig	Thu Apr  9 09:44:41 2009
+++ agent/mibgroup/if-mib/data_access/interface_sysctl.c	Mon Sep 20 09:48:18 2010
@@ -183,6 +183,7 @@ netsnmp_sysctl_ifmedia_to_speed(int media, u_int *spee
 #endif
             }
             break;
+#if defined(IFM_TOKEN)
         case IFM_TOKEN:
             switch (IFM_SUBTYPE(media)) {
                 case IFM_TOK_STP4:
@@ -201,9 +202,10 @@ netsnmp_sysctl_ifmedia_to_speed(int media, u_int *spee
                     *speed = 100000000;
                     *speed_high = 100;
                     break;
-#endif
+#endif /* IFM_TOKEN */
             }
             break;
+#endif
 #ifdef IFM_ATM
         case IFM_ATM:
             switch (IFM_SUBTYPE(media)) {
