Em 05/01/18 16:33,
upadhya...@gmail.com escreveu:
> On Friday, January 5, 2018 at 5:37:56 AM UTC-6, stefan wrote:
[...]
>> on some ("old") linuxes, O_CLOEXEC seems to be defined only when #define _GNU_SOURCE is set before including fcntl.h. You should definitely open a ticket at
https://core.tcl.tk/tcl/ticket
>>
>> Stefan
>
> Interesting. Not sure if I am seeing something wrong, but the code does have _GNU_SOURCE defined:
>
> #ifdef NOTIFIER_EPOLL
>
> #define _GNU_SOURCE /* For pipe2(2) */
> #include "tclInt.h"
> #ifndef HAVE_COREFOUNDATION /* Darwin/Mac OS X CoreFoundation notifier is
> * in tclMacOSXNotify.c */
>
> #include <fcntl.h>
> #include <signal.h>
> #include <sys/epoll.h>
>
> NOTIFIER_EPOLL is set to 1 by the configure script
>
I do not know the source code. But from this excerpt alone I think we
can not be 100% sure that fcntl.h was not included before the #define.
It still may, provided that it gets included previously from some other
heading file.
--
{ricardo from
kozmate.net}