Index: sys/unix/unixunix.c
--- sys/unix/unixunix.c.orig
+++ sys/unix/unixunix.c
@@ -38,7 +38,9 @@ gethdate(name)
  * does not exist on all systems, and moreover, that it sometimes includes
  * <sys/types.h> again, so that the compiler sees these typedefs twice.
  */
+#ifndef HAVE_SYS_PARAM_H
 #define		MAXPATHLEN	1024
+#endif
 
 	register const char *np, *path;
 	char filename[MAXPATHLEN+1];
@@ -107,7 +109,7 @@ int fd;
 #ifndef INSURANCE
 	if(buf.st_size != sizeof(int)) return(0);	/* not an xlock file */
 #endif
-#ifdef BSD
+#if 0
 	(void) time((long *)(&date));
 #else
 	(void) time(&date);
