From 7ce2ff2d22aba9442347e94dd62fe2212d0adb27 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon, 11 Sep 2006 15:30:32 +0000
Subject: [PATCH] Move xml2's PG_MODULE_MAGIC block to the right source file,
 per Michael Fuhr.

---
 contrib/xml2/xpath.c     | 3 +++
 contrib/xml2/xslt_proc.c | 2 --
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c
index 5ced182d3c4..01f1976ab61 100644
--- a/contrib/xml2/xpath.c
+++ b/contrib/xml2/xpath.c
@@ -16,6 +16,9 @@
 #include <libxml/xmlerror.h>
 #include <libxml/parserInternals.h>
 
+
+PG_MODULE_MAGIC;
+
 /* declarations */
 
 static void *pgxml_palloc(size_t size);
diff --git a/contrib/xml2/xslt_proc.c b/contrib/xml2/xslt_proc.c
index 404aa2a7907..433030ead96 100644
--- a/contrib/xml2/xslt_proc.c
+++ b/contrib/xml2/xslt_proc.c
@@ -21,8 +21,6 @@
 #include <libxslt/xsltutils.h>
 
 
-PG_MODULE_MAGIC;
-
 /* declarations to come from xpath.c */
 
 extern void elog_error(int level, char *explain, int force);
-- 
GitLab