Blame SOURCES/make-4.2-j8k.patch

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