$NetBSD$

--- cpmcp.c.orig	2006-12-06 14:53:28.000000000 +0000
+++ cpmcp.c
@@ -8,6 +8,7 @@
 #include "dmalloc.h"
 #endif
 
+#include <sys/types.h>
 #include <sys/stat.h>
 #include <ctype.h>
 #include <errno.h>
