projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1776b7
)
[PATCH] Fix Ada bootstrap failure on Cygwin since switch to C++11 (PR98590)
author
Mikael Pettersson
<mikpelinux@gmail.com>
Tue, 2 Mar 2021 22:20:06 +0000
(15:20 -0700)
committer
Jeff Law
<law@redhat.com>
Tue, 2 Mar 2021 22:20:06 +0000
(15:20 -0700)
gcc/ada
PR bootstrap/98590
* cstreams.c: Ensure fileno_unlocked() is visible on Cygwin.
gcc/ada/cstreams.c
patch
|
blob
|
history
diff --git
a/gcc/ada/cstreams.c
b/gcc/ada/cstreams.c
index
4e00ded
..
8072320
100644
(file)
--- a/
gcc/ada/cstreams.c
+++ b/
gcc/ada/cstreams.c
@@
-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>