From 3a26e8b6cceab0cf70fd5eac7d73072743367e27 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 4 Apr 2016 22:10:59 +0200 Subject: [PATCH] Fix build when snmpv3 is not available. One more thanks, Erik :-) --- src/apps/snmp/snmpv3_dummy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/snmp/snmpv3_dummy.c b/src/apps/snmp/snmpv3_dummy.c index 7d3fac46..3bee1694 100644 --- a/src/apps/snmp/snmpv3_dummy.c +++ b/src/apps/snmp/snmpv3_dummy.c @@ -38,6 +38,8 @@ #include #include "lwip/err.h" +#if LWIP_SNMP && LWIP_SNMP_V3 + /** * @param username is a pointer to a string. * @param auth_algo is a pointer to u8_t. The implementation has to set this if user was found. @@ -139,3 +141,5 @@ void snmpv3_reset_engine_time(void) { } + +#endif /* LWIP_SNMP && LWIP_SNMP_V3 */ \ No newline at end of file