X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.ac;h=eab3432253098a1f40b8e6ba2210ac9d4aeff9f3;hp=77451f3e44dd5c88efb78b9181f7e39bc4c80116;hb=be121194cc100248d3f306bb3f658899b8da39fe;hpb=4367c421fc62bbbb685d491415fe0cca6c990041 diff --git a/configure.ac b/configure.ac index 77451f3e..eab34322 100644 --- a/configure.ac +++ b/configure.ac @@ -3844,7 +3844,7 @@ if test "x$with_libnetsnmp" = "xyes"; then AC_CACHE_CHECK([whether netsnmp library has old API], [c_cv_have_netsnmp_old_api], [ - AC_COMPILE_IFELSE( + AC_LINK_IFELSE( [ AC_LANG_PROGRAM( [[ @@ -3852,9 +3852,9 @@ if test "x$with_libnetsnmp" = "xyes"; then #include ]], [[ - netsnmp_variable_list *key; + netsnmp_variable_list *key = SNMP_MALLOC_TYPEDEF(netsnmp_variable_list);; int val; - u_char type; + u_char type = ASN_INTEGER; snmp_set_var_value(key, &val, sizeof(val)); snmp_set_var_typed_value(key, type, &val, sizeof(val)); return 0;