--- pager.c.orig	Fri Sep 19 20:27:37 1997
+++ pager.c	Fri Sep 19 20:27:01 1997
@@ -11,6 +11,9 @@
  *
  */
 
+#ifdef __FreeBSD__
+  #include <unistd.h>
+#endif
 #include "common.h"
 #include "main.h"
 #include "getfile.h"	/* make_accesspath() */
@@ -34,7 +37,7 @@
 static	int	line_count;
 static	FILE	*pager_fp = NULL;
 
-static	void	pause(void);
+static	void	_pause(void);
 
 /*
  * TODAY ϥեκ
@@ -109,7 +112,7 @@
 	}
 	if (pager_cmd == NULL) {
 		if (pager_lastpause == YES) {
-			pause();
+			_pause();
 		}
 	} else {
 		sprintf(cmdbuf, "%s %s", pager_cmd, pager_file);
@@ -168,7 +171,11 @@
 		fputs(linebuffer, pager_fp);
 		if (fputc('\n', pager_fp) == EOF) {
 			errprint("pager_output", ERR_ERROR, "ե(%s)˽ϤǤޤ errno = %d", pager_file, errno);
+#ifndef __FreeBSD__
 			terminate_program(TERM_FILEERROR, 0);
+#else
+			terminate_program(TERM_FILEERROR);
+#endif
 		}
 	}
 	if (pager_cmd != NULL) {
@@ -181,7 +188,7 @@
 		line_count -= maxline;
 		if (line_count <= 0) {
 			line_count = screen_max_rows;
-			pause();
+			_pause();
 			line_count -= maxline;
 		}
 	}
@@ -196,7 +203,7 @@
  *      ˡunix δĶʤ鳰ڡɤȻפ
  */
 static
-void	pause(void)
+void	_pause(void)
 {
 #if defined(human68k) || defined(MSDOS) || defined(LSI_C)
 	cprintf("\033[7m--- more ---\033[0m");
@@ -259,9 +266,9 @@
 				unsigned char	*brp, *oip;
 				unsigned char	*hp;
 
-				brp = (unsigned char *)"äåǡɡˡ͡ϡۡѡӡաס٧.:;?!)]};
+				brp = (unsigned char *)"äåǡɡˡ͡ϡۡѡӡաס٧,.:;?!)]}";
 
-				oip = (unsigned char *)"ơȡʡ̡ΡڡСҡԡ֡ء([{;
+				oip = (unsigned char *)"ơȡʡ̡ΡڡСҡԡ֡ء([{";
 
 				hp = jstrchr(brp, c);
 				if (hp != NULL && (col + cwidth) > width && once_flag == NO) {
