summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-05-17 16:24:13 +0300
committerEli Zaretskii <eliz@gnu.org>2013-05-17 16:24:13 +0300
commit171eb419085bde8e1acc7cd0e39cf796d8e91cd9 (patch)
treef77f2c3fa2b2fa99f81cef3c5f06e482f3cda9a1 /main.c
parent9babfe49a55cfdbb5161ce3e9d01f22f4e06f240 (diff)
downloadgunmake-171eb419085bde8e1acc7cd0e39cf796d8e91cd9.tar.gz
Fix MS-Windows compilation when OUTPUT_SYNC is not defined.
main.c (prepare_mutex_handle_string): Define conditioned on OUTPUT_SYNC.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 955ece5..4588da5 100644
--- a/main.c
+++ b/main.c
@@ -752,6 +752,8 @@ decode_output_sync_flags (void)
#ifdef WINDOWS32
+#ifdef OUTPUT_SYNC
+
/* This is called from start_job_command when it detects that
output_sync option is in effect. The handle to the synchronization
mutex is passed, as a string, to sub-makes via the --sync-mutex
@@ -775,6 +777,8 @@ prepare_mutex_handle_string (sync_handle_t handle)
}
}
+#endif /* OUTPUT_SYNC */
+
/*
* HANDLE runtime exceptions by avoiding a requestor on the GUI. Capture
* exception and print it to stderr instead.