From 799ebcec9179c59448fde264f95ce83a93763417 Mon Sep 17 00:00:00 2001 From: mark <25310987+anonymouspage@users.noreply.github.com> Date: Sat, 31 Dec 2022 04:05:23 -0800 Subject: [PATCH] Add missing thread include to ctimepoint (#6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolves the following error compiling on Ubuntu 22.04: ctimepoint.cpp: In static member function ‘static void CTimePoint::TaskSleepFor(uint)’: ctimepoint.cpp:52:27: error: ‘sleep_for’ is not a member of ‘std::this_thread’ 52 | std::this_thread::sleep_for(timespan); | ^~~~~~~~~ $ gcc -v <> gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04 Co-authored-by: Mark Landis (N6AZX) --- src/ctimepoint.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ctimepoint.cpp b/src/ctimepoint.cpp index bf69c22..311319e 100644 --- a/src/ctimepoint.cpp +++ b/src/ctimepoint.cpp @@ -25,6 +25,8 @@ #include "main.h" #include "ctimepoint.h" +#include + //////////////////////////////////////////////////////////////////////////////////////// // constructor