[PATCH] libgpg-error: Fix windows build

Andre Heinecke aheinecke at intevation.de
Tue Apr 5 12:42:08 CEST 2016


Hi,

libgpg-error fails to compile for windows without optimization because it uses 
the FD_ISSET macro and does not link against ws2_32.

Attached patch provides a simple replacement function for FD_ISSET to be used 
on Windows.

Please apply this or fix it in another way, code should not rely on 
optimization behavior to compile.

To reproduce the build error:

../configure --host=i686-w64-mingw32 CFLAGS=
make

Regards,
Andre

-- 
Andre Heinecke |  ++49-541-335083-262  | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-FD_ISSET-replacement-for-Windows.patch
Type: text/x-patch
Size: 1952 bytes
Desc: not available
URL: </pipermail/attachments/20160405/1a5d5130/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20160405/1a5d5130/attachment.sig>


More information about the Gnupg-devel mailing list