diff -ruN klic-3.003-2002-02-26c/runtime/config/pvm/distio.c klic-3.003-2002-02-26d/runtime/config/pvm/distio.c
--- klic-3.003-2002-02-26c/runtime/config/pvm/distio.c	Sun Jan 13 13:24:38 2002
+++ klic-3.003-2002-02-26d/runtime/config/pvm/distio.c	Tue Feb 26 17:57:27 2002
@@ -198,6 +198,10 @@
   }
 }
 
+static int has_attached = 0;
+extern void AttachIO(void){ if( ! has_attached ) io_client(AttachTag); }
+extern void DetachIO(void){ if(   has_attached ) io_client(DetachTag); }
+
 extern int
 #ifdef USE_STDARG
 io_client(enum io_tag msg_tag, ...)
diff -ruN klic-3.003-2002-02-26c/runtime/config/pvm/distio.h klic-3.003-2002-02-26d/runtime/config/pvm/distio.h
--- klic-3.003-2002-02-26c/runtime/config/pvm/distio.h	Sun Jan 13 13:46:21 2002
+++ klic-3.003-2002-02-26d/runtime/config/pvm/distio.h	Tue Feb 26 17:57:11 2002
@@ -14,8 +14,6 @@
 #include <klic/distproc.h>
 
 #define CloseIO()		io_client(FinishTag)
-#define AttachIO()		if (!has_attached) io_client(AttachTag)
-#define DetachIO()		if(has_attached) io_client(DetachTag)
 #define SystemPrint(Str)	io_client(System_putbTag, Str)
 #define SystemRead(Str)		io_client(System_getsTag, Str)
 #define SystemPutc(Char)	io_client(System_putcTag, Char)
@@ -60,8 +58,9 @@
   Emergency_stopTag,
   System_IsEOFTag };
 
-Extern int has_attached Init(0);
-
+extern void AttachIO(void);
+extern void DetachIO(void);
 extern int io_client VA_ARGS((enum io_tag msg_tag, ...));
+extern NeverReturn void io_server(int argc, char** argv);
 
 #endif /* _KLIC_DISTIO_H_ */
diff -ruN klic-3.003-2002-02-26c/runtime/config/pvm/distpkt.c klic-3.003-2002-02-26d/runtime/config/pvm/distpkt.c
--- klic-3.003-2002-02-26c/runtime/config/pvm/distpkt.c	Mon Feb 18 16:47:31 2002
+++ klic-3.003-2002-02-26d/runtime/config/pvm/distpkt.c	Tue Feb 26 18:20:17 2002
@@ -35,13 +35,13 @@
 #include <signal.h>
 
 #include <klic/distio.h>
+#include <klic/sighndl.h>  /* add_signal_handler */
 #include "interpe.h"
 #include "rmon.h"
+#include "timer.h"  /* call_at_time_intervals */
 
 #define INITIAL_COMBUF_SIZE	0x10000	/* for inbuf and outbuf */
 
-extern int add_signal_handler();
-extern void call_at_time_intervals();
 extern int receive_message();
 extern int send_profile();
 extern int send_profile_trigger();
