From ab2409635268791a2696d864251590672f4954b4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 24 Jun 2013 19:34:04 +0300 Subject: Fix inconsistency in system vs pipes in non-socket Windows builds. io.c: Move #include "popen.h" out of the HAVE_SOCKETS condition, as this is needed for non-sockets builds as well. See http://lists.gnu.org/archive/html/bug-gawk/2013-06/msg00014.html for the details of the problem this caused. --- io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index dad7c7b9..dc41aea3 100644 --- a/io.c +++ b/io.c @@ -76,10 +76,6 @@ #include #endif /* HAVE_NETDB_H */ -#if defined(HAVE_POPEN_H) -#include "popen.h" -#endif - #ifndef HAVE_GETADDRINFO #include "missing_d/getaddrinfo.h" #endif @@ -108,6 +104,10 @@ #include #endif +#if defined(HAVE_POPEN_H) +#include "popen.h" +#endif + #ifdef __EMX__ #include #endif -- cgit v1.2.3