Blame SOURCES/make-4.3-j8k.patch

652aeb
diff -Nrup a/src/main.c b/src/main.c
652aeb
--- a/src/main.c	2016-05-31 03:17:26.000000000 -0400
652aeb
+++ b/src/main.c	2016-09-22 16:18:52.283889265 -0400
652aeb
@@ -2051,6 +2051,21 @@ main (int argc, char **argv, char **envp
652aeb
     }
652aeb
 #endif
652aeb
 
652aeb
+#ifdef PIPE_BUF
652aeb
+  if (job_slots > PIPE_BUF)
652aeb
+#elif defined _POSIX_PIPE_BUF
652aeb
+  if (job_slots > _POSIX_PIPE_BUF)
652aeb
+#else
652aeb
+  if (job_slots > 512)
652aeb
+#endif
652aeb
+    {
652aeb
+      O (error, NILF,
652aeb
+            _("More parallel jobs (-jN) than this platform can handle requested."));
652aeb
+      O (error, NILF, _("Resetting to single job (-j1) mode."));
652aeb
+      job_slots = 1;
652aeb
+    }
652aeb
+
652aeb
+
652aeb
   /* If we have >1 slot at this point, then we're a top-level make.
652aeb
      Set up the jobserver.
652aeb