From 54902c0a6a9376d3618f14103db2d767006a293a Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Fri, 22 Jan 2016 15:03:22 +0000 Subject: [PATCH] Change the variable to a #define in order to make gcc happy which otherwise will complain about "variably modified 'alias' at file scope". Unbreaks the build on gcc platforms. --- contrib/bsnmp/snmp_mibII/mibII.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bsnmp/snmp_mibII/mibII.h b/contrib/bsnmp/snmp_mibII/mibII.h index d47bc0bf470f..f7b230dc30c9 100644 --- a/contrib/bsnmp/snmp_mibII/mibII.h +++ b/contrib/bsnmp/snmp_mibII/mibII.h @@ -58,7 +58,7 @@ #include "mibII_tree.h" /* maximum size of the interface alias */ -static const u_int MIBIF_ALIAS_SIZE = 64 + 1; +#define MIBIF_ALIAS_SIZE (64 + 1) /* * Interface list and flags.