diff modules/pipe-posix @ 13925:29a686188651

pipe-posix: Make it work in C++ mode. * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe. (pipe): Use common idiom, not a macro definition. * lib/pipe.c: New file. * m4/pipe.m4: New file. * modules/pipe-posix (Description): Enhance. (Files): Add lib/pipe.c, m4/pipe.m4. (configure.ac): Invoke gl_FUNC_PIPE. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE. * modules/unistd (Makefile.am): Substitute HAVE_PIPE. * tests/test-unistd-c++.cc: Check the signature of pipe.
author Bruno Haible <bruno@clisp.org>
date Sat, 11 Dec 2010 03:03:05 +0100
parents ec0a7deeb2de
children 6645dea6c600
line wrap: on
line diff
--- a/modules/pipe-posix
+++ b/modules/pipe-posix
@@ -1,13 +1,15 @@
 Description:
-Creation of a pipe.
+pipe() function: Creation of a pipe.
 
 Files:
+lib/pipe.c
+m4/pipe.m4
 
 Depends-on:
 unistd
 
 configure.ac:
-AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+gl_FUNC_PIPE
 gl_UNISTD_MODULE_INDICATOR([pipe])
 
 Makefile.am: