$OpenBSD: patch-tests_util_CMakeLists_txt,v 1.2 2019/02/12 02:26:40 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,6 +163,6 @@ 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")
 
 piglit_include_target_api()
