$OpenBSD$

Index: src/posix/unix/gtk_dialogs.cpp
--- src/posix/unix/gtk_dialogs.cpp.orig
+++ src/posix/unix/gtk_dialogs.cpp
@@ -33,6 +33,14 @@
 
 #ifndef NO_GTK
 
+#ifdef __OpenBSD__
+#define GTKLIB "libgtk-3.so"
+#define GTKX11LIB "libgtk-x11-2.0.so"
+#else
+#define GTKLIB "libgtk-3.so.0"
+#define GTKX11LIB "libgtk-x11-2.0.so.0"
+#endif
+
 #if !DYN_GTK
 // Function addresses will never be NULL, but that's because we're using the
 // same code for both dynamic and static.
@@ -427,7 +435,7 @@ bool I_GtkAvailable()
 
 	if(GtkAvailable < 0)
 	{
-		if (!GtkModule.Load({"libgtk-3.so.0", "libgtk-x11-2.0.so.0"}))
+		if (!GtkModule.Load({GTKLIB, GTKX11LIB}))
 		{
 			GtkAvailable = 0;
 			return false;
