Blame SOURCES/make-4.2-j8k.patch

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