]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Make netsnmp headers compatible with C99.
authorVincent Bernat <bernat@luffy.cx>
Wed, 28 Oct 2009 10:38:03 +0000 (11:38 +0100)
committerVincent Bernat <bernat@luffy.cx>
Wed, 28 Oct 2009 10:41:30 +0000 (11:41 +0100)
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

index f3295bc27ea686144ec8ffcc265f2a8bb90fd0de..09c57add4954e104ea2c94ab67992b0a7412a3bb 100644 (file)
@@ -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}"