--- a/ptw32_throw.c
+++ b/ptw32_throw.c
@@ -37,6 +37,10 @@
 
 #include "pthread.h"
 #include "implement.h"
+
+#if defined(__CLEANUP_C)
+# include <setjmp.h>
+#endif
 
 /*
  * ptw32_throw