--- bin/psorder/pa.c.orig	Sun Aug 17 09:20:00 1997
+++ bin/psorder/pa.c	Wed Nov 10 14:11:49 1999
@@ -24,6 +24,8 @@
 /* This is used with pa.h */
 
 #include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
 
 #include "pa.h"
 
@@ -54,7 +56,7 @@
 {
 	h->state = PA_NORMAL;
 	h->tmp = *(h->cur);
-	*(h->cur) = NULL;
+	*(h->cur) = 0;
 	return( h->mark );
 }
 
@@ -68,7 +70,7 @@
 		*(h->buf) = *(h->cur);
 		h->cur = h->buf;
 	} else {
-		bcopy( h->mark, h->buf, h->end - h->mark + 1 );
+		memcpy( h->buf, h->mark, h->end - h->mark + 1 );
 		h->cur = h->buf + ( h->cur - h->mark );
 		h->end = h->buf + ( h->end - h->mark );
 		h->mark = h->buf;
