227
/* Hide some function declarations from <winsock2.h>. */
229
#if @HAVE_WINSOCK2_H@
230
# if !defined _@GUARD_PREFIX@_UNISTD_H
231
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
233
# define close close_used_without_including_unistd_h
235
_GL_WARN_ON_USE (close,
236
"close() used without including <unistd.h>");
238
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
240
# define gethostname gethostname_used_without_including_unistd_h
242
_GL_WARN_ON_USE (gethostname,
243
"gethostname() used without including <unistd.h>");
246
# if !defined _@GUARD_PREFIX@_SYS_SELECT_H
247
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
249
# define select select_used_without_including_sys_select_h
251
_GL_WARN_ON_USE (select,
252
"select() used without including <sys/select.h>");
206
257
/* Wrap everything else to use libc file descriptors for sockets. */
208
#if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
209
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
211
# define close close_used_without_including_unistd_h
213
_GL_WARN_ON_USE (close,
214
"close() used without including <unistd.h>");
218
#if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
219
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
221
# define gethostname gethostname_used_without_including_unistd_h
223
_GL_WARN_ON_USE (gethostname,
224
"gethostname() used without including <unistd.h>");
228
259
#if @GNULIB_SOCKET@
229
260
# if @HAVE_WINSOCK2_H@
230
261
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
617
#if @HAVE_WINSOCK2_H@
618
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
620
# define select select_used_without_including_sys_select_h
622
_GL_WARN_ON_USE (select,
623
"select() used without including <sys/select.h>");
627
648
#if @GNULIB_ACCEPT4@
628
649
/* Accept a connection on a socket, with specific opening flags.
629
650
The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)