From b6c446664143fe798bcee3d443c9a8d9a0239d36 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Sun, 4 Feb 2007 12:50:53 +0000 Subject: Added DllMain() function for Watcom. --- windows_port.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/windows_port.c b/windows_port.c index 2a326da..6086024 100644 --- a/windows_port.c +++ b/windows_port.c @@ -20,6 +20,19 @@ #include "ares.h" #include "ares_private.h" +#ifdef __WATCOMC__ +/* Watcom needs a DlMain() in order to initialise the clib startup code. + */ +BOOL +DllMain (HINSTANCE hnd, DWORD reason, LPVOID reserved) +{ + (void) hnd; + (void) reason; + (void) reserved; + return (TRUE); +} +#endif + #ifndef __MINGW32__ int ares_strncasecmp(const char *a, const char *b, int n) -- cgit v1.2.3