- include/libxml/globals.h include/libxml/threads.h threads.c
  testThreads.c: far more testing, cleaning up bugs
- *.c : make sure globals.h is always included.
Daniel
diff --git a/catalog.c b/catalog.c
index 287d4aa..40e91a5 100644
--- a/catalog.c
+++ b/catalog.c
@@ -38,6 +38,7 @@
 #include <libxml/catalog.h>
 #include <libxml/xmlerror.h>
 #include <libxml/threads.h>
+#include <libxml/globals.h>
 
 #define MAX_DELEGATE	50
 
@@ -1217,7 +1218,7 @@
 
     if (xmlDebugCatalogs)
 	xmlGenericError(xmlGenericErrorContext,
-		"Parsing catalog %s\n", filename);
+		"%d Parsing catalog %s\n", xmlGetThreadId(), filename);
 
     cur = xmlDocGetRootElement(doc);
     if ((cur != NULL) && (xmlStrEqual(cur->name, BAD_CAST "catalog")) &&