From 5a903a2fbc29e17da0ada83ed0bb7fdffbe7dae7 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 2 May 2003 18:56:55 +0000
Subject: [PATCH] Need to include pth.h for SLEEP() on platforms using the Pth
 lib for threads.

---
 src/xpdev/genwrap.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h
index 831c59d4fe..cfbde705d4 100644
--- a/src/xpdev/genwrap.h
+++ b/src/xpdev/genwrap.h
@@ -49,6 +49,9 @@
 	#include <unistd.h>		/* usleep */
 	#ifdef _THREAD_SAFE
 		#include <pthread.h>/* Check for GNU PTH libs */
+		#ifdef _PTH_PTHREAD_H_
+			#include <pth.h>
+		#endif
 	#endif
 #elif defined(_WIN32)
 	#include <process.h>	/* getpid() */
-- 
GitLab