packaging: Initial packaging
[platform/upstream/make.git] / packaging / make-3.80-j8k.patch
1 --- make-3.80/main.c.jj 2002-08-09 21:27:17.000000000 -0400
2 +++ make-3.80/main.c    2004-12-13 12:48:25.000000000 -0500
3 @@ -1549,6 +1549,20 @@ int main (int argc, char ** argv)
4        }
5    }
6  
7 +#ifdef PIPE_BUF
8 +  if (job_slots > PIPE_BUF)
9 +#elif defined _POSIX_PIPE_BUF
10 +  if (job_slots > _POSIX_PIPE_BUF)
11 +#else
12 +  if (job_slots > 512)
13 +#endif
14 +    {
15 +      error (NILF,
16 +            _("More parallel jobs (-jN) than this platform can handle requested."));
17 +      error (NILF, _("Resetting to single job (-j1) mode."));
18 +      job_slots = 1;
19 +    }
20 +
21    /* If we have >1 slot but no jobserver-fds, then we're a top-level make.
22       Set up the pipe and install the fds option for our children.  */
23