41728dbfa1
- rc scripts added (names suggested by Nigel Taylor, I was having a hard time coming up with something nice that avoid a conflict with base snmpd now the rc.d namespace is shared).
19 lines
719 B
Plaintext
19 lines
719 B
Plaintext
$OpenBSD: patch-agent_mibgroup_ucd-snmp_versioninfo_c,v 1.5 2011/07/07 20:02:02 sthen Exp $
|
|
--- agent/mibgroup/ucd-snmp/versioninfo.c.orig Fri Jul 1 23:35:46 2011
|
|
+++ agent/mibgroup/ucd-snmp/versioninfo.c Wed Jul 6 23:15:53 2011
|
|
@@ -93,7 +93,13 @@ var_extensible_version(struct variable *vp,
|
|
char *cptr;
|
|
time_t curtime;
|
|
#ifdef NETSNMP_CONFIGURE_OPTIONS
|
|
- static char config_opts[] = NETSNMP_CONFIGURE_OPTIONS;
|
|
+#ifndef __STRING
|
|
+#define __STRING(x) #x
|
|
+#endif
|
|
+#ifndef __string
|
|
+#define __string(x) __STRING(x)
|
|
+#endif
|
|
+ static char config_opts[] = __string(NETSNMP_CONFIGURE_OPTIONS);
|
|
#endif
|
|
|
|
DEBUGMSGTL(("ucd-snmp/versioninfo", "var_extensible_version: "));
|