[MacPorts] #59180: h2o @2.2.5: error: use of undeclared identifier 'O_CLOEXEC'
MacPorts
noreply at macports.org
Sat Oct 5 18:03:48 UTC 2019
#59180: h2o @2.2.5: error: use of undeclared identifier 'O_CLOEXEC'
---------------------------------------+----------------------
Reporter: ryandesign | Owner: l2dy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.1
Keywords: tiger leopard snowleopard | Port: h2o
---------------------------------------+----------------------
[https://build.macports.org/builders/ports-10.6_i386-builder/builds/1250/steps
/install-port/logs/stdio h2o doesn't build on Snow Leopard] because:
{{{
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_www_h2o/h2o/work/h2o-2.2.5/lib/common/file.c:39:35:
error: use of undeclared identifier 'O_CLOEXEC'
if ((fd = open(fn, O_RDONLY | O_CLOEXEC)) == -1)
^
1 error generated.
}}}
The legacysupport portgroup has the missing definition of `O_CLOEXEC`, or
if that's the only missing thing, you could just add a patch to `#define`
it to `0`.
--
Ticket URL: <https://trac.macports.org/ticket/59180>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list