aboutsummaryrefslogtreecommitdiff
path: root/ares/windows_port.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-04 12:50:53 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-04 12:50:53 +0000
commitfe7fa8e794b4a8e3f04580235d57bd485ecd1e2d (patch)
tree0e0683d6714cb51933fe30feca2fa23c17b918f9 /ares/windows_port.c
parent6a175b42dbbf78dd77e8522218b8f5e6f72b9244 (diff)
Added DllMain() function for Watcom.
Diffstat (limited to 'ares/windows_port.c')
-rw-r--r--ares/windows_port.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ares/windows_port.c b/ares/windows_port.c
index 2a326da01..6086024a0 100644
--- a/ares/windows_port.c
+++ b/ares/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)