Avoid compiler warnings in output.c on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Mon, 16 Sep 2013 08:30:01 +0000 (11:30 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 16 Sep 2013 08:30:01 +0000 (11:30 +0300)
 output.c [WINDOWS32]: Include windows.h and sub_proc.h, to avoid
 compiler warnings for CLOSE_ON_EXEC.

ChangeLog
output.c

index a24e2633bf2870fddd52f25aa181c75ce9db7d73..a9e3d3656096cbcbc83ddbc025ea28ab67d7bcbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * output.c [WINDOWS32]: Include windows.h and sub_proc.h, to avoid
+       compiler warnings for CLOSE_ON_EXEC.
+
 2013-09-16  Paul Smith  <psmith@gnu.org>
 
        * configure.ac: Update version to 3.99.91.
index c9e19099781fd127d0513c4533af952e02b4be14..c445e63b74e67ee433fb189cd63e443ab5803801 100644 (file)
--- a/output.c
+++ b/output.c
@@ -30,6 +30,11 @@ this program.  If not, see <http://www.gnu.org/licenses/>.  */
 # include <sys/file.h>
 #endif
 
+#ifdef WINDOWS32
+# include <windows.h>
+# include "sub_proc.h"
+#endif /* WINDOWS32 */
+
 struct output *output_context = NULL;
 static unsigned int stdio_traced = 0;