summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-09-16 11:30:01 +0300
committerEli Zaretskii <eliz@gnu.org>2013-09-16 11:30:01 +0300
commitbc120f27bd87ff32218c30bd9589201eff7fcfee (patch)
tree1c5a80ff7e1f2178472ccbfc75e2e23b1161dabf
parent5c0fba724050840c8a3de7e5caaba8333fec8332 (diff)
downloadgunmake-bc120f27bd87ff32218c30bd9589201eff7fcfee.tar.gz
Avoid compiler warnings in output.c on MS-Windows.
output.c [WINDOWS32]: Include windows.h and sub_proc.h, to avoid compiler warnings for CLOSE_ON_EXEC.
-rw-r--r--ChangeLog5
-rw-r--r--output.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a24e263..a9e3d36 100644
--- 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.
diff --git a/output.c b/output.c
index c9e1909..c445e63 100644
--- 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;