Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Oops, correct MAP_32BIT fix

  • Loading branch information...
commit 25896b9f78f8a22d31fb124c00472c4dfc574a3a 1 parent 3dff33a
@tmm1 tmm1 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/elf.c
View
2  ext/elf.c
@@ -301,7 +301,7 @@ do_bin_allocate_page(struct elf_info *info)
*/
assert((size_t)info->text_segment <= UINT_MAX);
#ifndef MAP_32BIT
-#define MAP_32BIT // no MAP_32BIT defined on certain 32bit systems
+#define MAP_32BIT 0 // no MAP_32BIT defined on certain 32bit systems
#endif
return mmap(NULL, memprof_config.pagesize, PROT_WRITE|PROT_READ|PROT_EXEC, MAP_ANON|MAP_PRIVATE|MAP_32BIT, -1, 0);
}
Please sign in to comment.
Something went wrong with that request. Please try again.