mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 22:51:06 +08:00
[PATCH] Fix Ada bootstrap failure on Cygwin since switch to C++11 (PR98590)
gcc/ada PR bootstrap/98590 * cstreams.c: Ensure fileno_unlocked() is visible on Cygwin.
This commit is contained in:
parent
d1776b7757
commit
8b6ebc025c
@ -37,6 +37,11 @@
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
/* the define above will make off_t a 64bit type on GNU/Linux */
|
||||
|
||||
/* Tell Cygwin's <stdio.h> to expose fileno_unlocked() */
|
||||
#if defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user