[PATCH] pthread: work around winpthread header pollution on mingw

2014-01-22 Thread Eric Blake
Dan Berrange reported compilation failure of libvirt on Fedora 20 when cross-compiling to mingw; the problem was traced to bogus macros in the winpthreads header shipped as part of mingw-headers 3.0. CC util/libvirt_util_la-virerror.lo In file included from /usr/i686-w64-mingw32/sys-root

Re: mingw64 + gnulib time.h / pthread.h / gmtime_r incompatibility

2014-01-22 Thread Eric Blake
On 01/22/2014 09:27 AM, Daniel P. Berrange wrote: > I'm attempting to make libvirt capable of building with mingw64 toolchain's > pthread.h, instead of directly using Windows thread primitives. > > When attempting to build though I see failures > > CC util/libvirt_util_la-virerror.lo > I

[PATCH] qacl: check for fchmod

2014-01-22 Thread Paul Eggert
* m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h and qset-acl.c both use HAVE_FCHMOD. --- ChangeLog | 6 ++ m4/acl.m4 | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e273b83..b7c3e0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -

Re: [libvirt] mingw64 + gnulib time.h / pthread.h / gmtime_r incompatibility

2014-01-22 Thread Daniel P. Berrange
On Wed, Jan 22, 2014 at 04:27:43PM +, Daniel P. Berrange wrote: > I'm attempting to make libvirt capable of building with mingw64 toolchain's > pthread.h, instead of directly using Windows thread primitives. Sorry, I should have mentioned the versions, Fedora 20, with mingw64 3.0.0 mingw32-

mingw64 + gnulib time.h / pthread.h / gmtime_r incompatibility

2014-01-22 Thread Daniel P. Berrange
I'm attempting to make libvirt capable of building with mingw64 toolchain's pthread.h, instead of directly using Windows thread primitives. As a quick hack I just changed libvirt logic to force use of pthreads, since configure is already doing the neccessary pthread.h probes for us even on win32 e