Revert "build: remove checks for WinSock 1"

Due to CI issues

This reverts commit c2ea04f92b.

Closes #7790
This commit is contained in:
Daniel Stenberg 2021-09-29 08:16:42 +02:00
parent 12246eddc5
commit 180180a44d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
16 changed files with 158 additions and 5 deletions

View file

@ -229,6 +229,10 @@ int main () { ; return 0; }
# include <windows.h>
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# else
# ifdef HAVE_WINSOCK_H
# include <winsock.h>
# endif
# endif
#endif
@ -254,6 +258,10 @@ main ()
# include <windows.h>
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# else
# ifdef HAVE_WINSOCK_H
# include <winsock.h>
# endif
# endif
#endif
@ -277,6 +285,10 @@ main ()
# include <windows.h>
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# else
# ifdef HAVE_WINSOCK_H
# include <winsock.h>
# endif
# endif
#endif
@ -301,6 +313,10 @@ main ()
# include <windows.h>
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# else
# ifdef HAVE_WINSOCK_H
# include <winsock.h>
# endif
# endif
#endif
@ -387,6 +403,10 @@ main ()
# include <windows.h>
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# else
# ifdef HAVE_WINSOCK_H
# include <winsock.h>
# endif
# endif
#endif
/* includes start */