Merge "[doit][darwin] make sure compiles are run with -O2"
diff --git a/patches/gcc-patch.txt b/patches/gcc-patch.txt
index 69bacaf..262c0ff 100644
--- a/patches/gcc-patch.txt
+++ b/patches/gcc-patch.txt
@@ -1121,7 +1121,7 @@
 !   if (pid <= 0)
 !     return -1;
 ! 
-!   wait_result = mx_handle_wait_one ((mx_handle_t) pid, MX_SIGNAL_SIGNALED,
+!   wait_result = mx_handle_wait_one ((mx_handle_t) pid, MX_TASK_TERMINATED,
 ! 				    MX_TIME_INFINITE, NULL);
 ! 
 !   if (wait_result != NO_ERROR)