Skip to content
Commit fdbbe4c5 authored by Lina Versace's avatar Lina Versace Committed by Andres Gomez
Browse files

drisw: Fix build on Android Nougat, which lacks shm (v2)



In commit cf54bd5e, dri_sw_winsys.c began using <sys/shm.h> to support
the new functions putImageShm, getImageShm in DRI_SWRastLoader. But
Android began supporting System V shared memory only in Oreo. Nougat has
no shm headers.

Fix the build by ifdef'ing out the shm code on Nougat.

Fixes: cf54bd5e "drisw: use shared memory when possible"
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@gmail.com>
(cherry picked from commit aaa41cd2)
parent 3c3589a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment