From 141d69cb2a94a752244e89f49611923a2f184dfd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 10 Jun 2014 15:11:32 +0200 Subject: w32: Fix build problem with dirmngr. * dirmngr/ks-engine-hkp.c (EAI_SYSTEM) [W32]: Add replacement constant. --- dirmngr/ks-engine-hkp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dirmngr') diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c index 0f0baab6b..762ab4ab0 100644 --- a/dirmngr/ks-engine-hkp.c +++ b/dirmngr/ks-engine-hkp.c @@ -40,10 +40,17 @@ #include "userids.h" #include "ks-engine.h" -/* Substitute a missing Mingw macro. */ +/* Substitutes for missing Mingw macro. The EAI_SYSTEM mechanism + seems not to be available (probably because there is only one set + of error codes anyway). For now we use WSAEINVAL. */ #ifndef EAI_OVERFLOW # define EAI_OVERFLOW EAI_FAIL #endif +#ifdef HAVE_W32_SYSTEM +# ifndef EAI_SYSTEM +# define EAI_SYSTEM WSAEINVAL +# endif +#endif /* Number of seconds after a host is marked as resurrected. */ -- cgit v1.2.3