changeset 2982:2155db306734

* include/lwipopts.h: Fix compilation error when compiling SNMP code. [ Bugzilla 1001098 ]
author jld
date Thu, 16 Dec 2010 21:33:26 +0000
parents 3022189df937
children 790fa8c690f4
files packages/net/lwip_tcpip/current/ChangeLog packages/net/lwip_tcpip/current/include/lwipopts.h
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/lwip_tcpip/current/ChangeLog
+++ b/packages/net/lwip_tcpip/current/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-10  Christophe Coutand  <ccoutand@stmi.com>
+
+	* include/lwipopts.h: Fix compilation error when compiling SNMP
+	code.
+
 2010-08-02  John Dallaway  <john@dallaway.org.uk>
 
 	* include/network.h: Match braces when including from C++ code.
--- 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)