diff -Naurp libxslt-1.1.26.orig/xsltproc/testThreads.c libxslt-1.1.26.patched/xsltproc/testThreads.c
--- libxslt-1.1.26.orig/xsltproc/testThreads.c	Fri Aug 14 08:14:21 2009
+++ libxslt-1.1.26.patched/xsltproc/testThreads.c	Fri Dec 30 23:26:37 2011
@@ -200,7 +200,7 @@ main(void)
     for (repeat = 0;repeat < 500;repeat++) {
 	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++) {
@@ -242,7 +242,7 @@ main(void)
         }
 	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++) {
