$OpenBSD: patch-tests_util_CMakeLists_txt,v 1.3 2021/01/31 03:19:35 jsg Exp $

account for OpenBSD

Index: tests/util/CMakeLists.txt
--- tests/util/CMakeLists.txt.orig
+++ tests/util/CMakeLists.txt
@@ -124,7 +124,7 @@ else()
 	)
 endif()
 
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
 	# One needs to have at least one hardware driver present, otherwise
 	# there is no point compiling just the dispatcher.
 	if(PIGLIT_BUILD_DMA_BUF_TESTS)
@@ -163,7 +163,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 		list(APPEND UTIL_GL_LIBS ${WAYLAND_LDFLAGS})
         endif()
 
-endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
 
 if(MSVC)
 	list(APPEND UTIL_SOURCES msvc/getopt.c)
