Skip to content

Commit

Permalink
Revert change in arc4random that inhibits use of mmap since mmap is n…
Browse files Browse the repository at this point in the history
…ow supported by Fil-C.
  • Loading branch information
Filip Pizlo committed Apr 25, 2024
1 parent faf17dc commit f81db2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openbsd-compat/arc4random.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _rs_forkdetect(void)
static inline int
_rs_allocate(struct _rs **rsp, struct _rsx **rsxp)
{
#if defined(MAP_ANON) && defined(MAP_PRIVATE) && !defined(__PIZLONATOR_WAS_HERE__)
#if defined(MAP_ANON) && defined(MAP_PRIVATE)
if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE,
MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED)
return (-1);
Expand Down

0 comments on commit f81db2b

Please sign in to comment.