X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/277ab4522131130e876b5ea8432217f93fc136f4..fe50e8140a2dbb3ba357a0ab777f34e07d568c23:/noise.c diff --git a/noise.c b/noise.c index ad257f56..1d764d5f 100644 --- a/noise.c +++ b/noise.c @@ -4,6 +4,13 @@ */ #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else +#include +#endif +#endif #include #include "putty.h" @@ -14,7 +21,7 @@ * GetSystemPowerStatus function. */ typedef BOOL (WINAPI *gsps_t)(LPSYSTEM_POWER_STATUS); -gsps_t gsps; +static gsps_t gsps; /* * This function is called once, at PuTTY startup, and will do some