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

Annotation of ports/games/vcmi/base/patches/patch-lib_CStopWatch_h, Revision 1.1

1.1     ! kirby       1: $OpenBSD$
        !             2: --- lib/CStopWatch.h.orig      Sat Jun 29 15:14:13 2013
        !             3: +++ lib/CStopWatch.h   Sat Jun 29 08:08:42 2013
        !             4: @@ -1,6 +1,6 @@
        !             5:  #pragma once
        !             6:  
        !             7: -#ifdef __FreeBSD__
        !             8: +#ifdef __OpenBSD__
        !             9:        #include <sys/types.h>
        !            10:        #include <sys/time.h>
        !            11:        #include <sys/resource.h>
        !            12: @@ -54,7 +54,7 @@ class CStopWatch
 (public)
        !            13:  private:
        !            14:        si64 clock() 
        !            15:        {
        !            16: -      #ifdef __FreeBSD__
        !            17: +      #ifdef __OpenBSD__
        !            18:                struct rusage usage;
        !            19:                getrusage(RUSAGE_SELF, &usage);
        !            20:                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;

CVSweb