diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-08-23 20:13:26 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-08-23 20:13:26 +0000 |
commit | 76a4a10d96c8efb424bfac6cc16b1d14ec5a94dc (patch) | |
tree | ceb25c44466bfa53cb87e42dd46ca7d7827cfde9 /src/microhttpd/mhd_itc.h | |
parent | b6d29e0cb35aeb2df21f2e959a93ca0552951009 (diff) | |
download | libmicrohttpd-76a4a10d96c8efb424bfac6cc16b1d14ec5a94dc.tar.gz libmicrohttpd-76a4a10d96c8efb424bfac6cc16b1d14ec5a94dc.zip |
Moved make_nonblocking() to mhd_sockets.c, added MHD_itc_nonblocking() for pipes.
Diffstat (limited to 'src/microhttpd/mhd_itc.h')
-rw-r--r-- | src/microhttpd/mhd_itc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h index 169bbb03..c7fd3f0d 100644 --- a/src/microhttpd/mhd_itc.h +++ b/src/microhttpd/mhd_itc.h | |||
@@ -114,5 +114,17 @@ | |||
114 | int MHD_W32_pair_of_sockets_(SOCKET sockets_pair[2]); | 114 | int MHD_W32_pair_of_sockets_(SOCKET sockets_pair[2]); |
115 | #endif /* _WIN32 && ! __CYGWIN__ */ | 115 | #endif /* _WIN32 && ! __CYGWIN__ */ |
116 | 116 | ||
117 | #ifndef MHD_DONT_USE_PIPES | ||
118 | /** | ||
119 | * Change itc FD options to be non-blocking. | ||
120 | * | ||
121 | * @param fd the FD to manipulate | ||
122 | * @return non-zero if succeeded, zero otherwise | ||
123 | */ | ||
124 | int | ||
125 | MHD_itc_nonblocking_ (MHD_pipe fd); | ||
126 | #else | ||
127 | # define MHD_itc_nonblocking_(f) MHD_socket_nonblocking_((f)) | ||
128 | #endif | ||
117 | 129 | ||
118 | #endif /* MHD_ITC_H */ | 130 | #endif /* MHD_ITC_H */ |