pipe-posix: Make it work in C++ mode.
authorBruno Haible <bruno@clisp.org>
Sat, 11 Dec 2010 02:03:05 +0000 (03:03 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 11 Dec 2010 02:03:05 +0000 (03:03 +0100)
commit1594aaeaab7775c1de2d6fcaeaa002d621f6dae3
treebd254b7803bcfcc9a5d897b54f55fbfa125f2c04
parent8ecf1d24ee3fae764eaed003e615269787aeb8e3
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.
ChangeLog
lib/pipe.c [new file with mode: 0644]
lib/unistd.in.h
m4/pipe.m4 [new file with mode: 0644]
m4/unistd_h.m4
modules/pipe-posix
modules/unistd
tests/test-unistd-c++.cc