2 socket() function: create a socket.
11 errno [test "$ac_cv_header_winsock2_h" = yes]
12 sockets [test "$ac_cv_header_winsock2_h" = yes]
13 msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
16 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
17 if test "$ac_cv_header_winsock2_h" = yes; then
20 # When this module is used, sockets may actually occur as file descriptors,
21 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
22 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
23 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
24 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
25 if test "$ac_cv_header_winsock2_h" = yes; then
26 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
27 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
29 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
43 Paolo Bonzini, Simon Josefsson