Skip to content

Commit

Permalink
Merge pull request #110 from endrift/master
Browse files Browse the repository at this point in the history
vita-elf: Fix build when MAP_NORESERVE is not available
  • Loading branch information
xyzz committed Apr 18, 2017
2 parents c51c7b9 + 5c78cd5 commit 25d343b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vita-elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# define MAP_ANONYMOUS MAP_ANON
#endif

#ifndef MAP_NORESERVE
# define MAP_NORESERVE 0
#endif

#ifndef __MINGW32__
/* This may cause trouble with Windows portability, but there are Windows alternatives
* to mmap() that we can explore later. It'll probably work under Cygwin.
Expand Down

0 comments on commit 25d343b

Please sign in to comment.