--- fileio.c.orig	2016-01-10 08:21:54.904501093 +0100
+++ fileio.c	2016-01-10 08:22:13.488701799 +0100
@@ -27,6 +27,10 @@
 #include "kbd.h"
 #include "pathnames.h"
 
+#ifndef DEFFILEMODE
+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
+#endif
+
 static char *bkuplocation(const char *);
 static int   bkupleavetmp(const char *);
 
--- fileio.c.orig	2016-01-10 08:23:22.129443103 +0100
+++ fileio.c	2016-01-10 08:23:46.952712519 +0100
@@ -6,6 +6,7 @@
  *	POSIX fileio.c
  */
 
+#include <sys/param.h>	/* MAXNAMLEN */
 #include <sys/queue.h>
 #include <sys/resource.h>
 #include <sys/stat.h>
