summaryrefslogtreecommitdiff
path: root/src/w32
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-08-28 17:45:49 +0300
committerEli Zaretskii <eliz@gnu.org>2019-08-28 17:45:49 +0300
commit715c787dc69bac37827a7d6ea6d40a86c55b5583 (patch)
tree2e1983a8f00a4ae70517733db0ad827525e2891c /src/w32
parente304a03b6d1f9f56b0f949074725c272a53e3080 (diff)
downloadmake-git-715c787dc69bac37827a7d6ea6d40a86c55b5583.tar.gz
Fix MS-Windows MinGW build
* src/w32/subproc/sub_proc.c (process_wait_for_multiple_objects): Fix format specifier for GetLastError's value. * src/job.c (reap_children): Define the 'remote_status_lose' label only for Posix platforms, to avoid compiler warning. * build_w32.bat (LNKOUT): New variable, using forward slashes. Use forward slashes in calls to :Compile, so that linking with GNU ld works. * src/makeint.h [!HAVE_UMASK]: Prototype for 'umask'. (UMASK, MODE_T): Don't define. * src/misc.c (get_tmpfile): Don't call UMASK, call umask, to avoid compilation warning on !HAVE_UMASK platforms. * src/output.c (output_tmpfd): Likewise. * src/misc.c (umask) [!HAVE_UMASK]: New no-op function. * src/config.h.W32.template (__USE_MINGW_ANSI_STDIO) [__MINGW32__]: Define to 1, to force Make use ANSI-compatible stdio functions, which also support the non-standard 'Id' and 'Ix' specifiers. (HAVE_UMASK) [__MINGW32__]: Define to 1. * src/arscan.c (ar_member_touch): Type-cast argument of strlen to avoid compiler warnings.
Diffstat (limited to 'src/w32')
-rw-r--r--src/w32/subproc/sub_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32/subproc/sub_proc.c b/src/w32/subproc/sub_proc.c
index 58064650..f502cda2 100644
--- a/src/w32/subproc/sub_proc.c
+++ b/src/w32/subproc/sub_proc.c
@@ -108,7 +108,7 @@ DWORD process_wait_for_multiple_objects(
continue;
break;
case WAIT_FAILED:
- fprintf(stderr,"WaitForMultipleOjbects failed waiting with error %d\n", GetLastError());
+ fprintf(stderr,"WaitForMultipleOjbects failed waiting with error %lu\n", GetLastError());
break;
default:
if (retVal >= WAIT_ABANDONED_0) {