diff --git a/library/net.c b/library/net.c index fd5fd127a..67080a2b7 100644 --- a/library/net.c +++ b/library/net.c @@ -40,11 +40,13 @@ #include #include +#if defined(_MSC_VER) #if defined(_WIN32_WCE) #pragma comment( lib, "ws2.lib" ) #else #pragma comment( lib, "ws2_32.lib" ) #endif +#endif /* _MSC_VER */ #define read(fd,buf,len) recv(fd,(char*)buf,(int) len,0) #define write(fd,buf,len) send(fd,(char*)buf,(int) len,0) diff --git a/programs/ssl/ssl_mail_client.c b/programs/ssl/ssl_mail_client.c index a3e9f2b98..6abc07339 100644 --- a/programs/ssl/ssl_mail_client.c +++ b/programs/ssl/ssl_mail_client.c @@ -42,11 +42,13 @@ #include #include +#if defined(_MSC_VER) #if defined(_WIN32_WCE) #pragma comment( lib, "ws2.lib" ) #else #pragma comment( lib, "ws2_32.lib" ) #endif +#endif /* _MSC_VER */ #endif #include "polarssl/base64.h"