summaryrefslogtreecommitdiff
path: root/textproc/libxml2/patches/patch-catalog.c
blob: 1f1339f2897df1ae6ddee5da2f94da8756c349df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-catalog.c,v 1.1 2019/01/09 19:09:03 adam Exp $

Parametrize XML and SGML catalog directories.

--- catalog.c.orig	2014-10-03 11:28:05.000000000 +0000
+++ catalog.c
@@ -70,10 +70,10 @@
 #define XML_URN_PUBID "urn:publicid:"
 #define XML_CATAL_BREAK ((xmlChar *) -1)
 #ifndef XML_XML_DEFAULT_CATALOG
-#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog"
+#define XML_XML_DEFAULT_CATALOG "file://@@XML_DEFAULT_CATALOG@@"
 #endif
 #ifndef XML_SGML_DEFAULT_CATALOG
-#define XML_SGML_DEFAULT_CATALOG "file:///etc/sgml/catalog"
+#define XML_SGML_DEFAULT_CATALOG "file://@@SGML_DEFAULT_CATALOG@@"
 #endif
 
 #if defined(_WIN32) && defined(_MSC_VER)