Skip to content

malloc.c:22:87: error: use of undeclared identifier 'MAP_ANONYMOUS' #665

@ryandesign

Description

@ryandesign

ngs fails to build on OS X 10.10 and earlier.

malloc.c:22:87: error: use of undeclared identifier 'MAP_ANONYMOUS'

Here's a recent build log: https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/274533/steps/install-port/logs/stdio

On older macOS and BSD, MAP_ANONYMOUS was called MAP_ANON. You could use:

#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif

I previously reported this to MacPorts: https://trac.macports.org/ticket/64195

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions