Skip to content

Commit

Permalink
If mman.h doesn't define MAP_NORESERVE, just define it to be 0
Browse files Browse the repository at this point in the history
The MAP_NORESERVE option probably doesn't even do anything on any
operating system we run on, except for the Solaris-ish systems.

This allows the lisp kernel to compile on FreeBSD 11 (which no
longer defines MAP_NORESERVE).
  • Loading branch information
xrme committed Nov 2, 2017
1 parent 8e1b993 commit 7783946
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lisp-kernel/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@

#ifndef WINDOWS
#include <sys/mman.h>

/*
* FreeBSD 11.0, at least, doesn't define this any more. It has never
* actually implemented it.
*/
#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0
#endif
#endif

#define DEBUG_MEMORY 0
Expand Down

0 comments on commit 7783946

Please sign in to comment.