openbsd-ports/net/net-snmp/patches/patch-agent_mibgroup_ucd-snmp_versioninfo_c

19 lines
717 B
Plaintext

$OpenBSD: patch-agent_mibgroup_ucd-snmp_versioninfo_c,v 1.3 2007/09/26 20:03:42 rui Exp $
--- agent/mibgroup/ucd-snmp/versioninfo.c.orig Fri Sep 15 01:48:50 2006
+++ agent/mibgroup/ucd-snmp/versioninfo.c Sat Sep 15 23:12:28 2007
@@ -94,7 +94,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: "));