build: Fix DRI3 on DragonFly and OpenBSD
Commit96bdc156added a check for <sys/eventfd.h> to enable DRI3. DragonFly and OpenBSD however rely on epoll-shim for <sys/eventfd.h>, so that must be added as a dependency for the <sys/eventfd.h> check. Fixes: commit96bdc156- xwayland: Do not enable DRI3 without eventfd Suggested-by: Jan Beich <jbeich@freebsd.org> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1642>
This commit is contained in:
		
							parent
							
								
									7bcf2bcafc
								
							
						
					
					
						commit
						8fe15a60c5
					
				| 
						 | 
				
			
			@ -511,7 +511,7 @@ else
 | 
			
		|||
   epoll_dep = []
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
have_eventfd = cc.has_header('sys/eventfd.h')
 | 
			
		||||
have_eventfd = cc.has_header('sys/eventfd.h', dependencies: epoll_dep)
 | 
			
		||||
if get_option('dri3') == 'auto'
 | 
			
		||||
    build_dri3 = dri3proto_dep.found() and xshmfence_dep.found() and libdrm_dep.found() and have_eventfd
 | 
			
		||||
else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue