From 915dc28b79c1df17d19e3b00b66d224977536eac Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 28 Oct 2009 11:38:03 +0100 Subject: [PATCH] Make netsnmp headers compatible with C99. Disable inlining by adding -DNETSNMP_NO_INLINE to CFLAGS. Since we only use header files, this should not be a problem. A more valid fix would be to turn NETSNMP_INLINE into "extern inline" instead of just "inline". Without this fix, we get a lot of warnings with gcc 4.3. --- m4/snmp.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/snmp.m4 b/m4/snmp.m4 index f3295bc2..09c57add 100644 --- a/m4/snmp.m4 +++ b/m4/snmp.m4 @@ -9,7 +9,7 @@ AC_DEFUN([lldp_CHECK_SNMP], [ AC_MSG_ERROR([*** unable to find net-snmp-config]) fi NETSNMP_LIBS=`${NETSNMP_CONFIG} --agent-libs` - NETSNMP_CFLAGS=`${NETSNMP_CONFIG} --base-cflags` + NETSNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags` -DNETSNMP_NO_INLINE" _save_flags="$CFLAGS" CFLAGS="$CFLAGS ${NETSNMP_CFLAGS}" -- 2.39.5