Opened 6 weeks ago

#59180 assigned defect

h2o @2.2.5: error: use of undeclared identifier 'O_CLOEXEC'

Reported by: ryandesign (Ryan Schmidt) Owned by: l2dy (Zero King)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: tiger leopard snowleopard Cc:
Port: h2o

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.