summarylogtreecommitdiffstats
path: root/glibc-2.42-baud-rate-fix.patch
blob: 5cf8333d68ebac5d5fbbdd9e01353641a0188e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/services/device/serial/serial_io_handler_posix.cc	2025-11-09 13:57:16.132379788 +0100
+++ b/services/device/serial/serial_io_handler_posix.cc	2025-11-09 14:07:13.488376598 +0100
@@ -51,7 +51,7 @@
 bool BitrateToSpeedConstant(int bitrate, speed_t* speed) {
 #define BITRATE_TO_SPEED_CASE(x) \
   case x:                        \
-    *speed = B##x;               \
+    *speed = __B##x;             \
     return true;
   switch (bitrate) {
     BITRATE_TO_SPEED_CASE(0)