Changeset 142960 for trunk/base


Ignore:
Timestamp:
Nov 29, 2015, 8:15:50 PM (4 years ago)
Author:
snc@…
Message:

pextlib1.0: 10.6 and earlier do not have O_CLOEXEC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/pextlib1.0/sip_copy_proc.c

    r142289 r142960  
    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    }
Note: See TracChangeset for help on using the changeset viewer.