5589dc
diff -up make-3.82/main.c\~ make-3.82/main.c
5589dc
--- make-3.82/main.c~	2010-07-19 09:10:53.000000000 +0200
5589dc
+++ make-3.82/main.c	2010-08-11 15:12:09.000000000 +0200
5589dc
@@ -1765,6 +1765,20 @@ main (int argc, char **argv, char **envp
5589dc
         }
5589dc
     }
5589dc
 
5589dc
+#ifdef PIPE_BUF
5589dc
+  if (job_slots > PIPE_BUF)
5589dc
+#elif defined _POSIX_PIPE_BUF
5589dc
+  if (job_slots > _POSIX_PIPE_BUF)
5589dc
+#else
5589dc
+  if (job_slots > 512)
5589dc
+#endif
5589dc
+    {
5589dc
+      error (NILF,
5589dc
+	     _("More parallel jobs (-jN) than this platform can handle requested."));
5589dc
+      error (NILF, _("Resetting to single job (-j1) mode."));
5589dc
+      job_slots = 1;
5589dc
+    }
5589dc
+
5589dc
   /* If we have >1 slot but no jobserver-fds, then we're a top-level make.
5589dc
      Set up the pipe and install the fds option for our children.  */
5589dc
 
5589dc
5589dc
Diff finished.  Wed Aug 11 15:12:32 2010