Compiling with pthreads

Daniel P. Berrange berrange at redhat.com
Fri Mar 13 13:48:05 UTC 2009


On Fri, Mar 13, 2009 at 02:42:02PM +0100, Kevin Kofler wrote:
> Farkas Levente wrote:
> > should it hurt anyone/anything?
> 
> Standard headers like pthread.h and sched.h are OK to install to includedir.
> I'd be more worried
> about /usr/i686-pc-mingw32/sys-root/mingw/include/pthread/config.h though.
> That's a really generic name and looks like it could definitely cause some
> conflicts.

win32 pthreads is a mess in this respect. config.h is a file generated
by their configure.ac,which has all the autoconf HAVE_XXX macros set.
Even worse, this file is included in pthread.h, thus totally polluting
your application's namespace. IMHO, this makes win32 pthreads unusable

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|



More information about the mingw mailing list