[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: RE: sys/times.h and mingw
From: Paulo Jorge Guedes <Paulo.Guedes () artelecom ! pt>
Date: 2006-05-26 9:31:57
Message-ID: F8784F641CC587479DC4FD0A08E9571D0152A762 () SRVEXC02 ! corp ! artelecom ! pt
[Download RAW message or body]
> -----Original Message-----
> From: Thiago Macieira [mailto:thiago@kde.org]
> Sent: sexta-feira, 26 de Maio de 2006 8:39
> To: kde-core-devel@kde.org
> Cc: kde-windows@kde.org; Paulo Jorge Guedes
> Subject: Re: sys/times.h and mingw
>
> Paulo Jorge Guedes wrote:
> >Hi,
> >
> >kdelibs/kabc/tests/bigread.cpp doesn't compile because of the
> >sys/times.h include, that doesn't exist on mingw includes neither on
> >kdelibs/win/include/mingw.
> >
> >There is already any solution for this on mingw?
>
> sys/times.h declares struct tms on Linux, which is used to determine
the
> amount of CPU time used by a child process.
>
> Is that what bigread.cpp does? If not, it's probably a typo for time.h
or
> sys/time.h.
It's not a typo, bigread.cpp calls times(). I don't know how much
times() is used across KDE though, and if we should worry with this for
Windows. A quick grep shows it's only used from bigread.cpp and
bigwrite.cpp so I guess we can #ifdef it.
Paulo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic