anv: add MAP_POPULATE fallback define for portability
FreeBSD does not have MAP_POPULATE Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
2be3f16600
commit
7b520dc74f
1 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,10 @@
|
|||
#define VG_NOACCESS_WRITE(__ptr, __val) (*(__ptr) = (__val))
|
||||
#endif
|
||||
|
||||
#ifndef MAP_POPULATE
|
||||
#define MAP_POPULATE 0
|
||||
#endif
|
||||
|
||||
/* Design goals:
|
||||
*
|
||||
* - Lock free (except when resizing underlying bos)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue