aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_itc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_itc.h')
-rw-r--r--src/microhttpd/mhd_itc.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
index c7fd3f0d..f42634f6 100644
--- a/src/microhttpd/mhd_itc.h
+++ b/src/microhttpd/mhd_itc.h
@@ -57,13 +57,9 @@
57/* MHD_pipe_ create pipe (!MHD_DONT_USE_PIPES) / 57/* MHD_pipe_ create pipe (!MHD_DONT_USE_PIPES) /
58 * create two connected sockets (MHD_DONT_USE_PIPES) */ 58 * create two connected sockets (MHD_DONT_USE_PIPES) */
59#ifndef MHD_DONT_USE_PIPES 59#ifndef MHD_DONT_USE_PIPES
60# define MHD_pipe_(fdarr) pipe((fdarr)) 60# define MHD_pipe_(fdarr) (!pipe((fdarr)))
61#else /* MHD_DONT_USE_PIPES */ 61#else /* MHD_DONT_USE_PIPES */
62# if !defined(_WIN32) || defined(__CYGWIN__) 62# define MHD_pipe_(fdarr) MHD_socket_pair_((fdarr))
63# define MHD_pipe_(fdarr) socketpair(AF_LOCAL, SOCK_STREAM, 0, (fdarr))
64# else /* !defined(_WIN32) || defined(__CYGWIN__) */
65# define MHD_pipe_(fdarr) MHD_W32_pair_of_sockets_((fdarr))
66# endif /* !defined(_WIN32) || defined(__CYGWIN__) */
67#endif /* MHD_DONT_USE_PIPES */ 63#endif /* MHD_DONT_USE_PIPES */
68 64
69/* MHD_pipe_last_strerror_ is description string of last errno (!MHD_DONT_USE_PIPES) / 65/* MHD_pipe_last_strerror_ is description string of last errno (!MHD_DONT_USE_PIPES) /
@@ -105,15 +101,6 @@
105# define MHD_INVALID_PIPE_ MHD_INVALID_SOCKET 101# define MHD_INVALID_PIPE_ MHD_INVALID_SOCKET
106#endif 102#endif
107 103
108#if defined(_WIN32) && !defined(__CYGWIN__)
109/**
110 * Create pair of mutually connected TCP/IP sockets on loopback address
111 * @param sockets_pair array to receive resulted sockets
112 * @return zero on success, -1 otherwise
113 */
114int MHD_W32_pair_of_sockets_(SOCKET sockets_pair[2]);
115#endif /* _WIN32 && ! __CYGWIN__ */
116
117#ifndef MHD_DONT_USE_PIPES 104#ifndef MHD_DONT_USE_PIPES
118/** 105/**
119 * Change itc FD options to be non-blocking. 106 * Change itc FD options to be non-blocking.