summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2006-10-23 07:41:05 +0000
committerAndy Polyakov <appro@openssl.org>2006-10-23 07:41:05 +0000
commita6efc2d1b8848e3a9f57acfea881e187afa38820 (patch)
treed3c181f2316fd5786226339d06e91f0263539a11 /e_os.h
parent3189772e07dafe359f84ada71001515127bc396d (diff)
Fix mingw warnings.
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/e_os.h b/e_os.h
index b8a7e35d7e..a969479ae9 100644
--- a/e_os.h
+++ b/e_os.h
@@ -452,7 +452,10 @@ static unsigned int _strlen31(const char *str)
# if defined(_WIN32_WCE) && _WIN32_WCE<410
# define getservbyname _masked_declaration_getservbyname
# endif
-# include <winsock.h>
+# if !defined(IPPROTO_IP)
+ /* winsock[2].h was included already? */
+# include <winsock.h>
+# endif
# ifdef getservbyname
# undef getservbyname
/* this is used to be wcecompat/include/winsock_extras.h */