Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-02-05 22:38:21 +0300
committerChristopher Faylor <me@cgf.cx>2011-02-05 22:38:21 +0300
commit63398011f942cb53bb9f02587dc62d6a6fe91b5d (patch)
tree4dcdbeef027b75ddc6920ddfe81c9bda3b829a14 /winsup/cygwin/autoload.cc
parent103e45ba4d110e9ba34f24d4c2cdfa47420a2906 (diff)
* autoload.cc (wsock_init): Properly define WSAStartup function pointer to
avoid stack damage.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r--winsup/cygwin/autoload.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 2e495ad6a..96de1439b 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -294,10 +294,10 @@ wsock_init ()
if (!wsock_started)
{
- int (*wsastartup) (int, WSADATA *);
+ int __stdcall (*wsastartup) (int, WSADATA *);
/* Don't use autoload to load WSAStartup to eliminate recursion. */
- wsastartup = (int (*)(int, WSADATA *))
+ wsastartup = (int __stdcall (*)(int, WSADATA *))
GetProcAddress ((HMODULE) (dll->handle), "WSAStartup");
if (wsastartup)
{