19 lines
719 B
Plaintext
19 lines
719 B
Plaintext
$OpenBSD: patch-agent_mibgroup_ucd-snmp_versioninfo_c,v 1.4 2010/10/25 22:59:12 sthen Exp $
|
|
--- agent/mibgroup/ucd-snmp/versioninfo.c.orig Sun Jan 24 11:41:03 2010
|
|
+++ agent/mibgroup/ucd-snmp/versioninfo.c Wed Oct 6 23:25:17 2010
|
|
@@ -87,7 +87,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: "));
|