diff --git a/include/pthread.h b/include/pthread.h
index ad907cf552002d3778031d813360889a759a78b1..5ff44f718e9af7345c6401f56fdb37ee2544c7dc 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -244,6 +244,12 @@ EXTERN void pthread_yield(void);
 
 #define pthread_self() ((pthread_t)getpid())
 
+/*----------------------------------------------------------*
+ * Compare to thread IDs.
+ *----------------------------------------------------------*/
+
+#define pthread_equal(t1,t2) (t1 == t2)
+
 /*----------------------------------------------------------*
  * Thread scheduling parameters
  *----------------------------------------------------------*/