From: Vincent Bernat Date: Wed, 28 Oct 2009 10:38:03 +0000 (+0100) Subject: Make netsnmp headers compatible with C99. X-Git-Tag: 0.5.0~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=915dc28b79c1df17d19e3b00b66d224977536eac;p=thirdparty%2Flldpd.git 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. --- 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}"