mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
asio: new recipe (#9780)
This commit is contained in:
22
dev-cpp/asio/patches/asio-1.28.2.patchset
Normal file
22
dev-cpp/asio/patches/asio-1.28.2.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user