# HG changeset patch # User jld # Date 1292535206 0 # Node ID 2155db30673470124c229457ce875060bab332fa # Parent 3022189df937d92942491fbb374608df3a9c7e25 * include/lwipopts.h: Fix compilation error when compiling SNMP code. [ Bugzilla 1001098 ] diff --git a/packages/net/lwip_tcpip/current/ChangeLog b/packages/net/lwip_tcpip/current/ChangeLog --- a/packages/net/lwip_tcpip/current/ChangeLog +++ b/packages/net/lwip_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2010-12-10 Christophe Coutand + + * include/lwipopts.h: Fix compilation error when compiling SNMP + code. + 2010-08-02 John Dallaway * include/network.h: Match braces when including from C++ code. diff --git a/packages/net/lwip_tcpip/current/include/lwipopts.h b/packages/net/lwip_tcpip/current/include/lwipopts.h --- a/packages/net/lwip_tcpip/current/include/lwipopts.h +++ b/packages/net/lwip_tcpip/current/include/lwipopts.h @@ -4,7 +4,7 @@ //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 2008, 2009 Free Software Foundation +// Copyright (C) 2008, 2009, 2010 Free Software Foundation // // eCos is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -99,7 +99,9 @@ // IP options //------------------------------------------------------------------------------ -#define IP_FORWARD defined(CYGFUN_LWIP_IP_FORWARD) +#ifdef CYGFUN_LWIP_IP_FORWARD +# define IP_FORWARD 1 +#endif #define IP_OPTIONS_ALLOWED defined(CYGFUN_LWIP_IP_OPTIONS_ALLOWED) #define IP_REASSEMBLY defined(CYGFUN_LWIP_IP_REASSEMBLY) #define IP_FRAG defined(CYGFUN_LWIP_IP_FRAG)