*** font_open.c.org	Sun Oct 15 23:55:51 1995
--- font_open.c	Sun Oct 15 23:34:15 1995
***************
*** 36,41 ****
--- 36,45 ----
   *
   */
  
+ #ifdef _HAVE_PARAM_H
+ #include <sys/param.h>
+ #endif
+ 
  #include "xdvi.h"
  #include <errno.h>
  
***************
*** 136,142 ****
  #include <unistd.h>	/* getcwd prototype */
  #else
  #if	NeedFunctionPrototypes
! #if	!defined(__386BSD__) && !defined(SVR4)
  extern	char	*getcwd (char *, int);
  #endif
  #else
--- 140,146 ----
  #include <unistd.h>	/* getcwd prototype */
  #else
  #if	NeedFunctionPrototypes
! #if	!defined(__386BSD__) && !defined(SVR4) && !defined(BSD) && !(BSD >= 199103)
  extern	char	*getcwd (char *, int);
  #endif
  #else
