sync ports with The Matrix
This commit is contained in:
parent
a0fe1892c0
commit
a526e24d56
276 changed files with 5668 additions and 3169 deletions
21
games/vcmi/patches/patch-lib_CStopWatch_h
Normal file
21
games/vcmi/patches/patch-lib_CStopWatch_h
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue