From c662bb3aa3101e2f0cdb5b912a7927a49f4e6969 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 13 Sep 2011 07:54:33 +0200 Subject: [PATCH] win32 port: fixed compilation of test.c, added ppp_impl.h to project --- ports/win32/msvc8/lwIP.vcproj | 18 ++++++++++++++++++ ports/win32/test.c | 9 ++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/ports/win32/msvc8/lwIP.vcproj b/ports/win32/msvc8/lwIP.vcproj index 57a6aff..5fe74d3 100644 --- a/ports/win32/msvc8/lwIP.vcproj +++ b/ports/win32/msvc8/lwIP.vcproj @@ -1254,6 +1254,24 @@ /> + + + + + + + + diff --git a/ports/win32/test.c b/ports/win32/test.c index 5d34b0b..c3afe42 100644 --- a/ports/win32/test.c +++ b/ports/win32/test.c @@ -81,8 +81,7 @@ #if PPP_SUPPORT /* PPP includes */ -#include "../netif/ppp/ppp.h" -#include "../netif/ppp/lcp.h" +#include "../netif/ppp/ppp_impl.h" #include "lwip/sio.h" #include "netif/ppp_oe.h" #endif /* PPP_SUPPORT */ @@ -529,11 +528,11 @@ void main_loop() started = sys_now(); do { -#if USE_ETHERNET +#if USE_ETHERNET && !PCAPIF_RX_USE_THREAD pcapif_poll(&netif); -#else /* USE_ETHERNET */ +#else /* USE_ETHERNET && !PCAPIF_RX_USE_THREAD */ sys_msleep(50); -#endif /* USE_ETHERNET */ +#endif /* USE_ETHERNET && !PCAPIF_RX_USE_THREAD */ /* @todo: need a better check here: only wait until PPP is down */ } while(sys_now() - started < 5000); }