popen: Support for MSVC.
authorBruno Haible <bruno@clisp.org>
Sat, 17 Sep 2011 16:28:17 +0000 (18:28 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 17 Sep 2011 16:28:17 +0000 (18:28 +0200)
commit25399c1aba359704fab2f4f5164011df43e1795e
tree91d9dd46a511fd9ab32f57b98f945d839e445a0a
parenteef112c69472818b6aa3673505c24e1f41571b7d
popen: Support for MSVC.

* lib/stdio.in.h (popen): Declare it if the system lacks this function.
* lib/popen.c (popen): Provide alternate definition for native Windows.
* m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
* modules/popen (Depends-on, configure.ac): Update condition.
* modules/stdio (Makefile.am): Substitute HAVE_POPEN.
* doc/posix-functions/popen.texi: Mention that the MSVC problem is
fixed.
ChangeLog
doc/posix-functions/popen.texi
lib/popen.c
lib/stdio.in.h
m4/popen.m4
m4/stdio_h.m4
modules/popen
modules/stdio