mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
23 lines
794 B
Plaintext
23 lines
794 B
Plaintext
From 688f218c4d23da62e54f0fef73c3df27c1891933 Mon Sep 17 00:00:00 2001
|
|
From: Maite Gamper <victor@wenzeslaus.de>
|
|
Date: Tue, 21 Nov 2023 22:19:53 +0100
|
|
Subject: asio: fix for haiku
|
|
|
|
|
|
diff --git a/asio/include/asio/impl/serial_port_base.ipp b/asio/include/asio/impl/serial_port_base.ipp
|
|
index 6f0db41..a4bd51a 100644
|
|
--- a/asio/include/asio/impl/serial_port_base.ipp
|
|
+++ b/asio/include/asio/impl/serial_port_base.ipp
|
|
@@ -113,7 +113,7 @@ ASIO_SYNC_OP_VOID serial_port_base::baud_rate::store(
|
|
ec = asio::error::invalid_argument;
|
|
ASIO_SYNC_OP_VOID_RETURN(ec);
|
|
}
|
|
-# if defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE)
|
|
+# if (defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE)) && !(defined(__HAIKU__))
|
|
::cfsetspeed(&storage, baud);
|
|
# else
|
|
::cfsetispeed(&storage, baud);
|
|
--
|
|
2.42.0
|
|
|