DIR struct on MinGW

Paulo Jorge Guedes Paulo.Guedes at artelecom.pt
Wed Aug 2 17:27:19 CEST 2006


> -----Original Message-----
> From: Peter Kümmel [mailto:syntheticpp at gmx.net]
> Sent: quarta-feira, 2 de Agosto de 2006 15:40
> To: kde-buildsystem at kde.org
> Subject: Re: DIR struct on MinGW
> 
> Paulo Jorge Guedes wrote:
> >> -----Original Message-----
> >> From: Peter Kümmel [mailto:syntheticpp at gmx.net]
> >> Sent: quarta-feira, 2 de Agosto de 2006 15:18
> >> To: kde-buildsystem at kde.org
> >> Subject: Re: DIR struct on MinGW
> >>
> >> Paulo Jorge Guedes wrote:
> >>>> I've renamed readir.h because it is not a posix file. Have a look at
> >> the
> >>>> msvc version of dirent.h and copy the missing definitions to the
> mingw
> >>>> version.
> >>> And stop including the mingw version?
> >>>
> >>> Paulo
> >> No, I would add the missing symbols without removing the mingw version.
> >
> > But the mingw header already defines the DIR struct...
> >
> > Paulo
> 
> Seems in src/dirent.c only readdir_r is needed by mingw,
> so a "#ifndef __MINGW32__" would be the best solution, without
> changing include/mingw/dirent.h:

Great, I will apply.
(TODO: fix setitimer problem :)

Thanks
Paulo


More information about the Kde-buildsystem mailing list