[PATCH lib/libXfont] Provide a dummy readlink on WIN32

Colin Harrison colin.harrison at virgin.net
Mon Oct 22 10:52:50 PDT 2012


Hi,

I have just used something like this to avoid the symlink problem...

--- ./src/fontfile/save_catalogue.c     2011-09-17 07:30:41.710991917 +0100
+++ ./src/fontfile/catalogue.c  2011-11-03 21:12:30.800542536 +0000
@@ -154,6 +154,7 @@
     }

     CatalogueUnrefFPEs (fpe);
+#ifndef __MINGW32__
     while (entry = readdir(dir), entry != NULL)
     {
        snprintf(link, sizeof link, "%s/%s", path, entry->d_name);
@@ -218,6 +219,7 @@
            continue;
        }
     }
+#endif

     closedir(dir);


Thanks,
Colin





More information about the xorg-devel mailing list