Fix MS-Windows compilation when OUTPUT_SYNC is not defined.
authorEli Zaretskii <eliz@gnu.org>
Fri, 17 May 2013 13:24:13 +0000 (16:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 17 May 2013 13:24:13 +0000 (16:24 +0300)
 main.c (prepare_mutex_handle_string): Define conditioned on OUTPUT_SYNC.

ChangeLog
main.c

index b3dd5a6b54a75cbf89d98ca26b102a9e3df27cb7..897554731eb42110ae6575b442af3e617358b753 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-05-17  Eli Zaretskii  <eliz@gnu.org>
 
+       * main.c (prepare_mutex_handle_string): Define conditioned on
+       OUTPUT_SYNC.
+
        * build_w32.bat: Copy config.h.W32 to config.h regardless of
        whether or not we are building from SCM.
 
diff --git a/main.c b/main.c
index 955ece5960ff13c8974204795b72647ed613929f..4588da5b54382fcd85f98d9cfa6014ce9b62d712 100644 (file)
--- 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.