diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-29 13:45:25 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-30 00:12:36 -0400 |
commit | 1f4ca0539b32b3f80d5aff2f096e9aebbca5300d (patch) | |
tree | c454ba5cffcdbc7776338277f7477ec548a5c68b /output.c | |
parent | d0944ee2e8705734c47371f3ec881ce9dae83411 (diff) | |
download | gunmake-1f4ca0539b32b3f80d5aff2f096e9aebbca5300d.tar.gz |
Fixes for building with MSVC.
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 */ |