diff options
author | Greg V <[email protected]> | 2020-02-26 23:14:00 +0300 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-13 23:51:43 +0000 |
commit | 924f3f3de72a05dac1757e29b971cc680349b18b (patch) | |
tree | 71491ebc8f0505a59c15bbf226b7ce392079812f /src/gallium/winsys/svga | |
parent | 9ce4db6231462998f9426c74681a464bda928842 (diff) |
svga: fix build on FreeBSD
MADV_HUGEPAGE only exists on Linux
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3966>
Diffstat (limited to 'src/gallium/winsys/svga')
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c index 6f987ba059d..9696f884e4f 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c +++ b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c @@ -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; } |