diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-11 15:20:50 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-11 15:20:50 +0000 |
commit | b6ae5bf9b70c867664daced6f24b6ba28ebc6c82 (patch) | |
tree | c00d1deea1e973ec182cf9e0233b6121cd57012b /src/microhttpd/mhd_itc.c | |
parent | 992b827ada904941972fe455c795f7b60853c33e (diff) | |
download | libmicrohttpd-b6ae5bf9b70c867664daced6f24b6ba28ebc6c82.tar.gz libmicrohttpd-b6ae5bf9b70c867664daced6f24b6ba28ebc6c82.zip |
Add 'configure' parameter to control ITC type
Diffstat (limited to 'src/microhttpd/mhd_itc.c')
-rw-r--r-- | src/microhttpd/mhd_itc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/microhttpd/mhd_itc.c b/src/microhttpd/mhd_itc.c index 5d90144f..e6cbd875 100644 --- a/src/microhttpd/mhd_itc.c +++ b/src/microhttpd/mhd_itc.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "internal.h" | 33 | #include "internal.h" |
34 | 34 | ||
35 | 35 | ||
36 | #ifdef HAVE_SYS_EVENTFD_H | 36 | #ifdef _MHD_ITC_EVENTFD |
37 | 37 | ||
38 | int | 38 | int |
39 | MHD_pipe_write_ (struct MHD_Pipe pip, | 39 | MHD_pipe_write_ (struct MHD_Pipe pip, |
@@ -49,9 +49,9 @@ MHD_pipe_write_ (struct MHD_Pipe pip, | |||
49 | return sz; | 49 | return sz; |
50 | } | 50 | } |
51 | 51 | ||
52 | #else | 52 | #endif /* _MHD_ITC_EVENTFD */ |
53 | 53 | ||
54 | #ifndef MHD_DONT_USE_PIPES | 54 | #if defined(_MHD_ITC_PIPE) |
55 | #if !defined(_WIN32) || defined(__CYGWIN__) | 55 | #if !defined(_WIN32) || defined(__CYGWIN__) |
56 | 56 | ||
57 | 57 | ||
@@ -83,6 +83,5 @@ MHD_itc_nonblocking_ (struct MHD_Pipe pip) | |||
83 | } | 83 | } |
84 | return !0; | 84 | return !0; |
85 | } | 85 | } |
86 | #endif /* _WIN32 && ! __CYGWIN__ */ | 86 | #endif /* !_WIN32 || __CYGWIN__ */ |
87 | #endif /* ! MHD_DONT_USE_PIPES */ | 87 | #endif /* _MHD_ITC_EVENTFD || _MHD_ITC_PIPE */ |
88 | #endif /* ! HAVE_SYS_EVENTFD_H */ | ||