From e7f37a2118b1a1384951d8ac8c58fe3ae1a7fd71 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 8 Apr 2011 10:44:53 -0600 Subject: [PATCH] pipe-filter: drop O_NONBLOCK workarounds * modules/pipe-filter-gi (Depends-on): Add fcntl-h. * modules/pipe-filter-ii (Depends-on): Likewise. * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ lib/pipe-filter-aux.h | 3 --- modules/pipe-filter-gi | 1 + modules/pipe-filter-ii | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1af3b7198..fe0a88639 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-04-08 Eric Blake + pipe-filter: drop O_NONBLOCK workarounds + * modules/pipe-filter-gi (Depends-on): Add fcntl-h. + * modules/pipe-filter-ii (Depends-on): Likewise. + * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround. + nonblocking: provide O_NONBLOCK for mingw * modules/nonblocking (Depends-on): Add open. (configure.ac): Set new witness macro. diff --git a/lib/pipe-filter-aux.h b/lib/pipe-filter-aux.h index 118970b85..8c6cb747a 100644 --- a/lib/pipe-filter-aux.h +++ b/lib/pipe-filter-aux.h @@ -102,9 +102,6 @@ nonintr_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, #endif /* Non-blocking I/O. */ -#ifndef O_NONBLOCK -# define O_NONBLOCK O_NDELAY -#endif #if HAVE_SELECT # define IS_EAGAIN(errcode) 0 #else diff --git a/modules/pipe-filter-gi b/modules/pipe-filter-gi index 7122c1ad4..f2e6fc032 100644 --- a/modules/pipe-filter-gi +++ b/modules/pipe-filter-gi @@ -11,6 +11,7 @@ spawn-pipe wait-process error exit +fcntl-h gettext-h stdbool stdint diff --git a/modules/pipe-filter-ii b/modules/pipe-filter-ii index f845a8f5a..5f7d05b9d 100644 --- a/modules/pipe-filter-ii +++ b/modules/pipe-filter-ii @@ -11,6 +11,7 @@ spawn-pipe wait-process error exit +fcntl-h gettext-h stdbool stdint -- 2.11.0