[MacPorts] #57406: varnish: error: use of undeclared identifier 'MAP_ANONYMOUS'

MacPorts noreply at macports.org
Thu Oct 18 08:17:00 UTC 2018


#57406: varnish: error: use of undeclared identifier 'MAP_ANONYMOUS'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  Gminfly
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  varnish
------------------------+----------------------
 [https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/70086/steps
 /install-port/logs/stdio varnish fails to build]:

 {{{
 mgt/mgt_child.c:408:26: error: use of undeclared identifier
 'MAP_ANONYMOUS'
                                               MAP_PRIVATE | MAP_ANONYMOUS,
                                                             ^
 1 error generated.
 make[3]: *** [varnishd-mgt_child.o] Error 1
 }}}

 `MAP_ANONYMOUS` is only available since OS X 10.11. Prior to that, it was
 called `MAP_ANON`, and you can still use that old name today, so that
 would be the simplest fix.

-- 
Ticket URL: <https://trac.macports.org/ticket/57406>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list