Changeset 36228 in project


Ignore:
Timestamp:
08/12/18 20:26:53 (2 months ago)
Author:
sjamaan
Message:

memory-mapped-files: Define MAP_FILE to zero if undefined, as it is deprecated anyway (Haiku doesn't implement it)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/5/memory-mapped-files/trunk/memory-mapped-files.scm

    r35998 r36228  
    193193#else
    194194#include <sys/mman.h>
     195
     196/**
     197 * MAP_FILE is for compatibility and deprecated.
     198 * POSIX doesn't list it, and Haiku doesn't implement it, but it's
     199 * safe to define it as zero, which will do nothing.
     200 */
     201#ifndef MAP_FILE
     202# define MAP_FILE 0
     203#endif
     204
    195205#endif
    196206
Note: See TracChangeset for help on using the changeset viewer.