sync ports with The Matrix

This commit is contained in:
purplerain 2023-09-18 23:08:50 +00:00
parent a0fe1892c0
commit a526e24d56
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
276 changed files with 5668 additions and 3169 deletions

View file

@ -0,0 +1,21 @@
Index: lib/CStopWatch.h
--- lib/CStopWatch.h.orig
+++ lib/CStopWatch.h
@@ -9,7 +9,7 @@
*/
#pragma once
-#ifdef __FreeBSD__
+#ifdef __OpenBSD__
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
@@ -55,7 +55,7 @@ class CStopWatch (public)
private:
si64 clock()
{
- #ifdef __FreeBSD__ // TODO: enable also for Apple?
+ #ifdef __OpenBSD__ // TODO: enable also for Apple?
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
return static_cast<si64>(usage.ru_utime.tv_sec + usage.ru_stime.tv_sec) * 1000000 + usage.ru_utime.tv_usec + usage.ru_stime.tv_usec;