sys/times.h and mingw
Paulo Jorge Guedes
Paulo.Guedes at artelecom.pt
Fri May 26 10:31:57 BST 2006
> -----Original Message-----
> From: Thiago Macieira [mailto:thiago at kde.org]
> Sent: sexta-feira, 26 de Maio de 2006 8:39
> To: kde-core-devel at kde.org
> Cc: kde-windows at kde.org; Paulo Jorge Guedes
> Subject: Re: sys/times.h and mingw
> Paulo Jorge Guedes wrote:
> >kdelibs/kabc/tests/bigread.cpp doesn't compile because of the
> >sys/times.h include, that doesn't exist on mingw includes neither on
> >There is already any solution for this on mingw?
> sys/times.h declares struct tms on Linux, which is used to determine
> 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
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.
More information about the kde-core-devel