Fix compilation error on FreeBSD. MAP_NO_RESERVE was never implemented, and as such had no effect there.
Reported by: @madpilot Refs: https://reviews.llvm.org/D7485, #5255 Differential Revision: https://code.wildfiregames.com/D1594 This was SVN commit r24513.
This commit is contained in:
parent
0221e70e51
commit
b5243cd574
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2012 Wildfire Games.
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
@ -27,6 +27,11 @@
|
||||
# include "lib/sysdep/os/win/wposix/wmman.h"
|
||||
#else
|
||||
# include <sys/mman.h>
|
||||
# if defined(__FreeBSD__)
|
||||
// The MAP_NORESERVE define has been removed in FreeBSD 11.x (https://reviews.freebsd.org/rS273250).
|
||||
// Even before that, it was never implemented. So just define it to zero.
|
||||
# define MAP_NORESERVE 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "lib/posix/posix_errno.h" // for user convenience
|
||||
|
Loading…
Reference in New Issue
Block a user