diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b2a08f420..aea8d6c4a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2013-04-16 Corinna Vinschen + + * glob.cc: Include winsup.h before anything else. + 2013-04-12 Corinna Vinschen * path.cc (symlink_info::check): Drop PC_KEEP_HANDLE flag for diff --git a/winsup/cygwin/glob.cc b/winsup/cygwin/glob.cc index 3b9267694..c02901fc6 100644 --- a/winsup/cygwin/glob.cc +++ b/winsup/cygwin/glob.cc @@ -30,6 +30,10 @@ * SUCH DAMAGE. */ +#ifdef __CYGWIN__ +#include "winsup.h" +#endif + #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)glob.c 8.3 (Berkeley) 10/13/93"; #endif /* LIBC_SCCS and not lint */ @@ -71,10 +75,6 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/glob.c,v 1.28 2010/05/12 17:44:00 gordon Ex * 3. State-dependent encodings are not currently supported. */ -#ifdef __CYGWIN__ -#include "winsup.h" -#endif - #include #include