[MacPorts] #49753: sip_copy_proc.c:333:45: error: use of undeclared identifier 'O_CLOEXEC'
#49753: sip_copy_proc.c:333:45: error: use of undeclared identifier 'O_CLOEXEC' --------------------------+-------------------- Reporter: ryandesign@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.99 Keywords: | Port: --------------------------+-------------------- https://build.macports.org/builders/buildbase-snowleopard- x86_64/builds/1849 {{{ sip_copy_proc.c:119:53: warning: unused parameter 'path' [-Wunused- parameter] static copy_needed_return_t copy_needed(const char *path, char *const argv[], ^ sip_copy_proc.c:119:71: warning: unused parameter 'argv' [-Wunused- parameter] static copy_needed_return_t copy_needed(const char *path, char *const argv[], ^ sip_copy_proc.c:120:16: warning: unused parameter 'outargv' [-Wunused- parameter] char **outargv[], char *const environ[], struct stat *st) { ^ sip_copy_proc.c:120:39: warning: unused parameter 'environ' [-Wunused- parameter] char **outargv[], char *const environ[], struct stat *st) { ^ sip_copy_proc.c:120:63: warning: unused parameter 'st' [-Wunused- parameter] char **outargv[], char *const environ[], struct stat *st) { ^ sip_copy_proc.c:333:45: error: use of undeclared identifier 'O_CLOEXEC' if (-1 == (infd = open(path, O_RDONLY | O_CLOEXEC))) { ^ sip_copy_proc.c:349:33: error: use of undeclared identifier 'buf' bytes_read = read(infd, buf, in_st->st_blksize); ^ sip_copy_proc.c:365:44: error: use of undeclared identifier 'buf' ssize_t written = write(outfd, buf + bytes_written, bytes_read - bytes_written); ^ 5 warnings and 3 errors generated. make[2]: *** [sip_copy_proc.o] Error 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/49753> MacPorts <https://www.macports.org/> Ports system for OS X
#49753: sip_copy_proc.c:333:45: error: use of undeclared identifier 'O_CLOEXEC' ---------------------------+-------------------- Reporter: ryandesign@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.3.99 Resolution: fixed | Keywords: Port: | ---------------------------+-------------------- Changes (by snc@…): * status: new => closed * resolution: => fixed Comment: 10.6 and earlier do not have `O_CLOEXEC` (close on exit) defined. I've committed r142960, which simply skips that file creation flag. -- Ticket URL: <https://trac.macports.org/ticket/49753#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts