Opened 6 years ago

Closed 2 years ago

#57406 closed defect (fixed)

varnish: error: use of undeclared identifier 'MAP_ANONYMOUS'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Gminfly
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: catap (Kirill A. Korinsky)
Port: varnish

Description

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.

Change History (1)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: catap added
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.