Blame SOURCES/make-4.3-j8k.patch

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