From b8b6b6239e8c3f8f29f20549c57de55180eef023 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 17 Nov 2007 21:33:53 +0000 Subject: [PATCH] Allow to build both with Cygwin and VC++. --- cpu/native/net/wpcap.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cpu/native/net/wpcap.c b/cpu/native/net/wpcap.c index 1b929f57b..c8db5eb2c 100644 --- a/cpu/native/net/wpcap.c +++ b/cpu/native/net/wpcap.c @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * $Id: wpcap.c,v 1.10 2007/11/17 20:00:42 oliverschmidt Exp $ + * $Id: wpcap.c,v 1.11 2007/11/17 21:33:53 oliverschmidt Exp $ */ #define WIN32_LEAN_AND_MEAN @@ -41,8 +41,11 @@ #include #include -#include +#ifdef __CYGWIN__ #include +#else +#include +#endif /* Avoid 'conflicting types' errors. */ #define htonl