Opened 16 months ago

Closed 8 months ago

#59180 closed defect (fixed)

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


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 (1)

comment:1 Changed 8 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In f1060d136c7d5d5132b540ee913e6acf5623301f/macports-ports (master):

h2o: add legacysupport

closes: #59180

Note: See TracTickets for help on using tickets.