summaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-29 13:45:25 -0400
committerPaul Smith <psmith@gnu.org>2013-09-30 00:12:36 -0400
commit1f4ca0539b32b3f80d5aff2f096e9aebbca5300d (patch)
treec454ba5cffcdbc7776338277f7477ec548a5c68b /output.c
parentd0944ee2e8705734c47371f3ec881ce9dae83411 (diff)
downloadgunmake-1f4ca0539b32b3f80d5aff2f096e9aebbca5300d.tar.gz
Fixes for building with MSVC.
Diffstat (limited to 'output.c')
-rw-r--r--output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/output.c b/output.c
index 3cf7afb..bb351d3 100644
--- a/output.c
+++ b/output.c
@@ -22,7 +22,10 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
-#include <unistd.h>
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
@@ -32,6 +35,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#ifdef WINDOWS32
# include <windows.h>
+# include <io.h>
# include "sub_proc.h"
#endif /* WINDOWS32 */