diff -ur libxml2-2.7.6.orig/testThreads.c libxml2-2.7.6/testThreads.c
--- libxml2-2.7.6.orig/testThreads.c	2009-09-24 17:32:00 +0200
+++ libxml2-2.7.6/testThreads.c	2009-10-21 23:10:54 +0200
@@ -107,7 +107,7 @@
 
 	for (i = 0; i < num_threads; i++) {
 	    results[i] = NULL;
-	    tid[i] = (pthread_t) -1;
+	    tid[i] = pthread_self();
 	}
 
 	for (i = 0; i < num_threads; i++) {
