Index: libobs/graphics/graphics.c
--- libobs/graphics/graphics.c.orig
+++ libobs/graphics/graphics.c
@@ -1412,7 +1412,7 @@ gs_texture_t *gs_texture_create(uint32_t width, uint32
 						       flags);
 }
 
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
 
 gs_texture_t *gs_texture_create_from_dmabuf(unsigned int width, unsigned int height, uint32_t drm_format,
 					    enum gs_color_format color_format, uint32_t n_planes, const int *fds,
