Re: fix for make 4.1 on 10.12

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0C97KJC6x3CCCA9u+E33xHdXQ4w7a3NYFCSZd2uzLVcBQ@mail.gmail.com>
FYI, I've also opened a bug report at...

https://savannah.gnu.org/bugs/index.php?46261

and posted the proposed fix there as well.

On Tue, Oct 20, 2015 at 10:16 PM, Jack Howarth <[email protected]>
wrote:

> The attached packaging adds the change...
>
> diff -uNr make-4.1.orig/main.c make-4.1/main.c
> --- make-4.1.orig/main.c        2014-10-05 12:24:51.000000000 -0400
> +++ make-4.1/main.c     2015-10-20 22:08:00.000000000 -0400
> @@ -3364,9 +3364,12 @@
>  #else
>        /* Close the write side, so the read() won't hang.  */
>        close (job_fds[1]);
> -
> -      while (read (job_fds[0], &token, 1) == 1)
> +      int r;
> +      EINTRLOOP (r, read (job_fds[0], &token, 1));
> +      while (r == 1) {
>          ++tcnt;
> +       EINTRLOOP (r, read (job_fds[0], &token, 1));
> +      }
>  #endif
>
>        if (tcnt != master_job_slots)
>
> which seems to eliminate the build failures with make 4.1 on 10.12 here by
> adding the missing usage of the EINTRLOOP() on the read calls in main.c.
>              Jack
>

------------------------------------------------------------------------------

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.