svga: fix build on FreeBSD
MADV_HUGEPAGE only exists on Linux Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3966>
This commit is contained in:
parent
9ce4db6231
commit
924f3f3de7
|
@ -694,7 +694,10 @@ vmw_ioctl_region_map(struct vmw_region *region)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// MADV_HUGEPAGE only exists on Linux
|
||||
#ifdef MADV_HUGEPAGE
|
||||
(void) madvise(map, region->size, MADV_HUGEPAGE);
|
||||
#endif
|
||||
region->data = map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue