sys/times.h and mingw

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri May 26 11:54:17 CEST 2006


> -------- Original-Nachricht --------
> Datum: Fri, 26 May 2006 10:44:47 +0100
> Von: Paulo Jorge Guedes <Paulo.Guedes at artelecom.pt>
> An: KDE on Windows <kde-windows at kde.org>
> Betreff: RE: RE: sys/times.h and mingw
> 
> >-----Original Message-----
> > From: Christian Ehrlicher [mailto:Ch.Ehrlicher at gmx.de]
> > Sent: sexta-feira, 26 de Maio de 2006 10:39
> > To: KDE on Windows
> > Subject: Re: RE: sys/times.h and mingw
> > 
> > > > -------- Original-Nachricht --------
> > > Datum: Fri, 26 May 2006 10:31:57 +0100
> > > Von: Paulo Jorge Guedes <Paulo.Guedes at artelecom.pt>
> > > An: KDE on Windows <kde-windows at kde.org>, kde-core-devel at kde.org
> > > Betreff: RE: sys/times.h and mingw
> > >
> > > >-----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:
> > > > >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.
> > >
> > And what's the problem creating a small sys/times.h? Afaik this is
> already
> > there for msvc...
> 
> It's already there for mingw... what is missing is the times function
> implementation for both mingw and msvc.
Then implement a dummy one. Maybe GetSystemTimes() can help you.

Christian
-- 


Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
      Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
    



More information about the Kde-windows mailing list