summaryrefslogtreecommitdiffstats
path: root/0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2021-09-02 17:33:55 -0400
committerYaakov Selkowitz <yselkowi@redhat.com>2021-09-02 17:33:55 -0400
commit041920c9533fad4a517fe6f268ebbd3af2a903a7 (patch)
tree8bd6477a4b39d73a8121d7292ffad82591eacf41 /0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch
parent58aad36b016765d2b651b9167f0a4caa6142d5f9 (diff)
downloadcygwin-gcc-041920c9533fad4a517fe6f268ebbd3af2a903a7.tar.gz
cygwin-gcc-041920c9533fad4a517fe6f268ebbd3af2a903a7.tar.xz
cygwin-gcc-041920c9533fad4a517fe6f268ebbd3af2a903a7.zip
cygwin-gcc 11.2.0
Diffstat (limited to '0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch')
-rw-r--r--0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch b/0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch
new file mode 100644
index 0000000..72e1b78
--- /dev/null
+++ b/0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch
@@ -0,0 +1,29 @@
+From 36da0aff82f9f7e03351ad757fd372866360c513 Mon Sep 17 00:00:00 2001
+From: Jonathan Yong <10walls@gmail.com>
+Date: Sat, 28 Jun 2014 10:05:50 +0800
+Subject: [PATCH 05/11] Cygwin: define RTS_CONTROL_ENABLE and
+ DTR_CONTROL_ENABLE
+
+---
+ gcc/ada/s-oscons-tmplt.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
+index 582c35ef7db..0832c6aed15 100644
+--- a/gcc/ada/s-oscons-tmplt.c
++++ b/gcc/ada/s-oscons-tmplt.c
+@@ -1044,6 +1044,11 @@ CND(VEOL2, "Alternative EOL")
+
+ #endif /* HAVE_TERMIOS */
+
++#if defined(__CYGWIN__)
++#define RTS_CONTROL_ENABLE 0x1
++#define DTR_CONTROL_ENABLE 0x1
++#endif
++
+ #if defined(__MINGW32__) || defined(__CYGWIN__)
+ CNU(DTR_CONTROL_ENABLE, "Enable DTR flow ctrl")
+ CNU(RTS_CONTROL_ENABLE, "Enable RTS flow ctrl")
+--
+2.31.1
+