From 149f21dc583d1705f555f35563d54b263e2afd90 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 18 Jan 2010 08:19:48 +0000 Subject: [PATCH] Only check for LWIP_RAND() if IGMP is used, for now --- src/core/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/init.c b/src/core/init.c index 83ed331c..944ffb54 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -172,8 +172,8 @@ #if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT) #error "LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT" #endif -#ifndef LWIP_RAND - #error "LWIP_RAND() needs to be defined to a random-function returning an u32_t random value" +#if LWIP_IGMP && !defined(LWIP_RAND) + #error "When using IGMP, LWIP_RAND() needs to be defined to a random-function returning an u32_t random value" #endif