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:
Greg V
2018-01-18 23:31:03 +03:00
committed by Eric Engestrom
parent 2be3f16600
commit 7b520dc74f
+4
View File
@@ -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)