Subject: Bad config-win32.h in 1.7.0 and snapshots

Bad config-win32.h in 1.7.0 and snapshots

From: Ingmar Runge <ingmar_at_irsoft.de>
Date: Mon, 21 Dec 2009 13:28:02 +0100

Hey,

the latest c-ares release fails on Windows. The problem is that sclose is
being defined to close (due to HAVE_CLOSESOCKET not being defined), and
MSVC's close() does not like sockets at all, so it assert()s and programs
compiled with c-ares as well as the examples from the package crash.

I added

#define HAVE_CLOSESOCKET 1

to config-win32.h and that fixed the crash I got from
ares__close_sockets.c, but it looks like there could be more defines
missing. Thanks!

Best regards
Ingmar Runge
Received on 2009-12-21