diff options
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 @@ int MHD_W32_pair_of_sockets_(SOCKET sockets_pair[2]); #endif /* _WIN32 && ! __CYGWIN__ */ +#ifndef MHD_DONT_USE_PIPES +/** + * Change itc FD options to be non-blocking. + * + * @param fd the FD to manipulate + * @return non-zero if succeeded, zero otherwise + */ + int + MHD_itc_nonblocking_ (MHD_pipe fd); +#else +# define MHD_itc_nonblocking_(f) MHD_socket_nonblocking_((f)) +#endif #endif /* MHD_ITC_H */ |