summaryrefslogtreecommitdiff
path: root/modules/stdio
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-17 18:28:17 +0200
committerBruno Haible <bruno@clisp.org>2011-09-17 18:28:17 +0200
commit25399c1aba359704fab2f4f5164011df43e1795e (patch)
tree91d9dd46a511fd9ab32f57b98f945d839e445a0a /modules/stdio
parenteef112c69472818b6aa3673505c24e1f41571b7d (diff)
downloadgnulib-25399c1aba359704fab2f4f5164011df43e1795e.tar.gz
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.
Diffstat (limited to 'modules/stdio')
-rw-r--r--modules/stdio1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/stdio b/modules/stdio
index 5fae1b95cf..cd21661e71 100644
--- a/modules/stdio
+++ b/modules/stdio
@@ -93,6 +93,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
-e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
-e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
-e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
+ -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \
-e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
-e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
-e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \