On Thu, Mar 12, 2009 at 03:30:58PM -0400, David Shaw wrote:
> The issue seems to be that the pthread.h header from that package is:
>   /usr/i686-pc-mingw32/sys-root/mingw/include/pthread/pthread.h
> and not:
>   /usr/i686-pc-mingw32/sys-root/mingw/include/pthread.h

Try using something like autoconf to detect the location of the
header, eg:

AC_CHECK_HEADERS([pthread.h pthread/pthread.h])

...

#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#else
#ifdef HAVE_PTHREAD_PTHREAD_H
#include <pthread/pthread.h>
#endif
#endif

I think this works even though <pthread/pthread.h> includes <sched.h>
which is in the pthread/ subdirectory?  If not you'll have to use some
more complex autoconf magic to set the include path.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw

Reply via email to