Opened 5 years ago

Closed 4 years ago

#59180 closed defect (fixed)

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

Reported by: ryandesign (Ryan Carsten 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 (1)

comment:1 Changed 4 years 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.