summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/patch-am
blob: 035132c7428d85a64b0b3f161afc09abda0a870b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-am,v 1.13 2013/03/17 00:17:34 gdt Exp $

--- agent/mibgroup/host/hr_swrun.c.orig	2012-10-09 22:28:58.000000000 +0000
+++ agent/mibgroup/host/hr_swrun.c
@@ -1012,8 +1012,10 @@ var_hrswrun(struct variable * vp,
 	else
 	    long_return = 4;	/* application */
     #endif
-#else
+#elif defined darwin
+	long_return = -1;
+#else
 	long_return = 4;	/* application */
 #endif
         return (u_char *) & long_return;
     case HRSWRUN_STATUS: