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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user