Ticket #4052: 4052.patch

File 4052.patch, 721 bytes (added by andrew_b, 2 years ago)
  • lib/tty/tty-internal.c

    diff --git a/lib/tty/tty-internal.c b/lib/tty/tty-internal.c
    index c3bc5a9b3..600576de8 100644
    a b int sigwinch_pipe[2]; 
    4545 
    4646/*** file scope macro definitions ****************************************************************/ 
    4747 
     48/* some OSes don't provide O_CLOEXEC */ 
     49#if !defined O_CLOEXEC && defined O_NOINHERIT 
     50/* Mingw spells it 'O_NOINHERIT'.  */ 
     51#define O_CLOEXEC O_NOINHERIT 
     52#endif 
     53 
     54#ifndef O_CLOEXEC 
     55#define O_CLOEXEC 0 
     56#endif 
     57 
    4858/*** global variables ****************************************************************************/ 
    4959 
    5060/*** file scope type declarations ****************************************************************/