[BACK]Return to patch-lib_CStopWatch_h CVS log [TXT][DIR] Up to [local] / ports / games / vcmi / base / patches

File: [local] / ports / games / vcmi / base / patches / Attic / patch-lib_CStopWatch_h (download)

Revision 1.1, Sat Jun 29 19:20:57 2013 UTC (11 years ago) by kirby
Branch: MAIN

split into subdirs

$OpenBSD$
--- lib/CStopWatch.h.orig	Sat Jun 29 15:14:13 2013
+++ lib/CStopWatch.h	Sat Jun 29 08:08:42 2013
@@ -1,6 +1,6 @@
 #pragma once
 
-#ifdef __FreeBSD__
+#ifdef __OpenBSD__
 	#include <sys/types.h>
 	#include <sys/time.h>
 	#include <sys/resource.h>
@@ -54,7 +54,7 @@ class CStopWatch
 (public)
 private:
 	si64 clock() 
 	{
-	#ifdef __FreeBSD__
+	#ifdef __OpenBSD__
 		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;