summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-10-29 09:59:30 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-10-29 19:00:55 -0500
commit5680e4c3d76cd5c64175d88d0685ee6962aa1e46 (patch)
treeab7c60c9d097528e3f3e322f15881c0134105f0a /src
parent3c534f72d6d4327926474a5f8fa53cbcf19de3cf (diff)
Omit catalogue support on systems without symlinks
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'src')
-rw-r--r--src/fontfile/catalogue.c4
-rw-r--r--src/fontfile/register.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/fontfile/catalogue.c b/src/fontfile/catalogue.c
index 8029b28..7e7e477 100644
--- a/src/fontfile/catalogue.c
+++ b/src/fontfile/catalogue.c
@@ -27,6 +27,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+
+#ifdef HAVE_READLINK
#include <X11/fonts/fntfilst.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -474,3 +476,5 @@ CatalogueRegisterLocalFpeFunctions (void)
CatalogueListNextFontOrAlias,
FontFileEmptyBitmapSource);
}
+
+#endif /* HAVE_READLINK */
diff --git a/src/fontfile/register.c b/src/fontfile/register.c
index 8d7229e..4faeb8f 100644
--- a/src/fontfile/register.c
+++ b/src/fontfile/register.c
@@ -57,6 +57,8 @@ FontFileRegisterFpeFunctions(void)
#endif
FontFileRegisterLocalFpeFunctions ();
+#ifdef HAVE_READLINK
CatalogueRegisterLocalFpeFunctions ();
+#endif
}