--- fhist/update.c--	Fri Oct  7 18:05:04 1994
+++ fhist/update.c	Thu Apr 23 17:01:14 1998
@@ -23,6 +23,10 @@
  * MANIFEST: functions to append the changes for a new edit to the history file.
  */
 
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
 #include <stdio.h>
 #include <errno.h>
 #include <ac/string.h>
@@ -39,6 +43,9 @@
 #include <subroutine.h>
 #include <update.h>
 
+#if defined(BSD)
+#define cuserid(X) getlogin()
+#endif
 
 /*
  * Add the lines in the history file for the specified new edit number.
@@ -46,6 +53,7 @@
  * and user-supplied remark lines.  These lines are written to the current
  * position in the file.  Errors are remembered by the file structure.
  */
+
 
 static void addhistory _((FILE *fp, char *remarks, long editnum));
 
