--- a/src/h/external.h
+++ b/src/h/external.h
@@ -137,6 +137,10 @@
 
 	/* Segmentation fault address */
 	void *fault_address;
+
+#ifdef ECL_THREADS
+	int cleanup;
+#endif
 };
 
 #ifndef __GNUC__