Include winsup.h prior to including other headers
Otherwise _GNU_SOURCE is not set when needed in sys/features.h. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		| @@ -29,13 +29,17 @@ | |||||||
|  * POSSIBILITY OF SUCH DAMAGE. |  * POSSIBILITY OF SUCH DAMAGE. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|  | #ifdef __CYGWIN__ | ||||||
|  | #include "winsup.h" | ||||||
|  | #endif | ||||||
|  |  | ||||||
| #include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||||
| #if defined(LIBC_SCCS) && !defined(lint) | #if defined(LIBC_SCCS) && !defined(lint) | ||||||
| __RCSID("$NetBSD: strptime.c,v 1.28 2008/04/28 20:23:01 martin Exp $"); | __RCSID("$NetBSD: strptime.c,v 1.28 2008/04/28 20:23:01 martin Exp $"); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifdef __CYGWIN__ | #ifdef __CYGWIN__ | ||||||
| #include "winsup.h" | #include "../locale/setlocale.h" | ||||||
| #else | #else | ||||||
| #include "namespace.h" | #include "namespace.h" | ||||||
| #include <sys/localedef.h> | #include <sys/localedef.h> | ||||||
| @@ -46,7 +50,6 @@ __RCSID("$NetBSD: strptime.c,v 1.28 2008/04/28 20:23:01 martin Exp $"); | |||||||
| #include <string.h> | #include <string.h> | ||||||
| #include <time.h> | #include <time.h> | ||||||
| #include <tzfile.h> | #include <tzfile.h> | ||||||
| #include "../locale/setlocale.h" |  | ||||||
|  |  | ||||||
| #ifdef __TM_GMTOFF | #ifdef __TM_GMTOFF | ||||||
| # define TM_GMTOFF __TM_GMTOFF | # define TM_GMTOFF __TM_GMTOFF | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user