Ticket #49753: patch-src-pextlib1.0-sip_copy_proc.c.diff

File patch-src-pextlib1.0-sip_copy_proc.c.diff, 654 bytes (added by nerdling (Jeremy Lavergne), 8 years ago)

r142960

  • src/pextlib1.0/sip_copy_proc.c

     
    330330        goto lazy_copy_out;
    331331    }
    332332
     333#ifdef O_CLOEXEC
    333334    if (-1 == (infd = open(path, O_RDONLY | O_CLOEXEC))) {
    334335        fprintf(stderr, "sip_copy_proc: open(%s, O_RDONLY | O_CLOEXEC): %s\n", path, strerror(errno));
     336#else
     337    if (-1 == (infd = open(path, O_RDONLY))) {
     338        fprintf(stderr, "sip_copy_proc: open(%s, O_RDONLY): %s\n", path, strerror(errno));
     339#endif
    335340        goto lazy_copy_out;
    336341    }
    337342