vcpkg/ports/nrf-ble-driver/gcc-11.2.0-compilation.patch
Mickaël Thomas 1ba9a2591f
[nrf-ble-driver] Fix incorrect tag, version number & compilation with gcc-11.2.0 (#31873)
* [nrf-ble-driver] fix compilation with gcc 11.2.0

PR: https://github.com/NordicSemiconductor/pc-ble-driver/pull/272

* [nrf-ble-driver] fix version & use correct tag

- Fixed version inconsistency (#28036)
- Used correct tag with precompiled hex files
2023-06-12 16:55:21 -07:00

23 lines
729 B
Diff

From 00791acc7c23ac2421102edd42a7fa562cc98bfd Mon Sep 17 00:00:00 2001
From: Krzysztof Rosinski <krzysiek@jrdltd.co.uk>
Date: Wed, 29 Dec 2021 09:47:40 +0100
Subject: [PATCH] fix compilation issue (gcc-11.2.0)
error: 'sleep_for' is not a member of 'std::this_thread'
---
src/common/transport/uart_transport.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/common/transport/uart_transport.cpp b/src/common/transport/uart_transport.cpp
index 1f063ff2..96e045fb 100644
--- a/src/common/transport/uart_transport.cpp
+++ b/src/common/transport/uart_transport.cpp
@@ -45,6 +45,7 @@
#include <mutex>
#include <sstream>
#include <system_error>
+#include <thread>
#if defined(__APPLE__)
#include <IOKit/serial/ioss.h>