From 9fccd63bc3ae664c4265a5d82441de7bcd8ef52e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 31 May 2013 08:40:35 +0000 Subject: [PATCH] * include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h to avoid circular dependency resulting in bogus compile time warnings. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/cygwin/if.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index aae0ea9e0..0897d5fe0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-05-31 Corinna Vinschen + + * include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h + to avoid circular dependency resulting in bogus compile time warnings. + 2013-05-28 Corinna Vinschen * fhandler_procsys.cc (fhandler_procsys::read): Just call diff --git a/winsup/cygwin/include/cygwin/if.h b/winsup/cygwin/include/cygwin/if.h index aa0c02b29..2cd6ac5f3 100644 --- a/winsup/cygwin/include/cygwin/if.h +++ b/winsup/cygwin/include/cygwin/if.h @@ -1,6 +1,6 @@ /* cygwin/if.h - Copyright 1996, 2000, 2001, 2007, 2012 Red Hat, Inc. + Copyright 1996, 2000, 2001, 2007, 2012, 2013 Red Hat, Inc. This file is part of Cygwin. @@ -16,7 +16,7 @@ extern "C" { #endif /* __cplusplus */ #include -#include +#include /* Standard interface flags. */ #define IFF_UP 0x1 /* interface is up */