From 64e338384bc99dfb49c4f46648b3fa0c50e8491d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 3 Jun 2011 00:10:00 +0200 Subject: pipe2: Remove dependency on 'nonblocking' module. * lib/pipe2.c: Include verify.h. Include nonblocking.h only if O_NONBLOCK is defined by gnulib. (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it is zero. * modules/pipe2 (Depends-on): Add verify. Remove nonblocking. * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is defined by gnulib. (get_nonblocking_flag): New function. (main): Test O_NONBLOCK flag only if it is nonzero. --- modules/pipe2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pipe2') diff --git a/modules/pipe2 b/modules/pipe2 index ca722168a7..62872a2255 100644 --- a/modules/pipe2 +++ b/modules/pipe2 @@ -10,7 +10,7 @@ unistd fcntl-h binary-io extensions -nonblocking +verify configure.ac: gl_FUNC_PIPE2 -- cgit v1.2.1