$OpenBSD: patch-lib_gvc_gvconfig_c,v 1.2 2010/08/09 08:55:43 espie Exp $ --- lib/gvc/gvconfig.c.orig2 Tue Sep 26 20:40:55 2006 +++ lib/gvc/gvconfig.c Mon Aug 9 10:26:48 2010 @@ -312,10 +312,14 @@ static void config_rescan(GVC_t *gvc, char *config_pat libdir = gvconfig_libdir(); config_re = gmalloc(strlen(plugin_re_beg) + 20 + strlen(plugin_re_end) + 1); +#ifdef __OpenBSD__ + sprintf(config_re, "%s", "\\.so\\.0\\.0$"); +#else #ifdef GVPLUGIN_VERSION sprintf(config_re,"%s%d%s", plugin_re_beg, GVPLUGIN_VERSION, plugin_re_end); #else sprintf(config_re,"%s[0-9]+%s", plugin_re_beg, plugin_re_end); +#endif #endif if (regcomp(&re, config_re, REG_EXTENDED|REG_NOSUB) != 0) {