>>>> "APA" == Adrian Aichner
<aichner(a)ecf.teradyne.com> writes:
>>>> "Martin" == Martin Buchholz
<martin(a)xemacs.org> writes:
APA> is this the authoritative way to conditionalize usage of
APA> fcntl(fd, F_SETFL, ...) in 21.2?
Yes. I considered using #ifdef HAVE_FCNTL_H, but the below looks more
correct. sysdep.c includes sysfile.h includes fcntl.h, if it exists.
And that should pull in F_SETFL on a standards-compliant system.
Martin> --- src/sysdep.c.old
Martin> +++ src/sysdep.c
Martin> @@ -212,7 +212,9 @@
Martin> }
Martin> #endif
Martin> +#ifdef F_SETFL
Martin> fcntl (fd, F_SETFL, O_NONBLOCK);
Martin> +#endif
Martin> }
Martin> #if defined (NO_SUBPROCESSES)