File noson-include-time.h.patch of Package noson
commit 9e6d6cc8c0c9be3da120e7de4fb9d794e97fa66f
Author: Dominique Leuenberger <dimstar@opensuse.org>
Date: Thu Aug 11 11:48:51 2022 +0200
threads: include time.h
Otherwise we fail with
[ 23s] /home/abuild/rpmbuild/BUILD/noson-2.8.6/noson/src/private/os/threads/timeout.h:58:5: error: 'clock_gettime' was not declared in this scope
on most recent gcc 12 branch
diff --git a/noson/src/private/os/threads/timeout.h b/noson/src/private/os/threads/timeout.h
index f0c3453..d259ca6 100644
--- a/noson/src/private/os/threads/timeout.h
+++ b/noson/src/private/os/threads/timeout.h
@@ -25,6 +25,7 @@
#if defined(__APPLE__)
#include <mach/mach_time.h>
#endif
+#include <time.h>
#ifdef NSROOT
namespace NSROOT {