MSYS2-packages/mingw-w64-cross-gcc/0005-Cygwin-define-RTS_CONTROL_ENABLE-and-DTR_CONTROL_ENA.patch
Christoph Reiter 5d0ae9ff04 cross-gcc: Update to 13.2.0
* sync in patches from cygwin gcc
* sync in important patches from mingw gcc not related to the build
* enabling stripping (not sure why it was disabled)
* reduce diff for build options to the mingw gcc build a bit
2023-11-13 19:49:38 +01:00

30 lines
812 B
Diff

From ae0f4a9da588a80f05ecf75a5dfbf3a38107b9c1 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/13] 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.39.0