diff -ru pkg-config-0.19/pkg.c pkg-config-0.19.new/pkg.c --- pkg-config-0.19/pkg.c 2005-07-15 10:20:20.000000000 +0200 +++ pkg-config-0.19.new/pkg.c 2005-08-28 18:41:04.000000000 +0200 @@ -144,7 +144,22 @@ dirnamelen--; dirname_copy[dirnamelen] = '\0'; } - +#ifdef G_OS_WIN32 + { + gchar *p; + /* Turn backslashes into slashes or + * poptParseArgvString() will eat them when ${prefix} + * has been expanded in parse_libs(). + */ + p = dirname; + while (*p) + { + if (*p == '\\') + *p = '/'; + p++; + } + } +#endif dir = opendir (dirname_copy); g_free (dirname_copy); if (!dir)