From 0bba80110308095af11ec9fa58eb3cd70a794802 Mon Sep 17 00:00:00 2001
From: fgilham <fgilham>
Date: Tue, 30 May 2006 22:42:14 +0000
Subject: [PATCH] Fix FreeBSD version to get rid of some warnings when building
 the lisp executable.

---
 lisp/FreeBSD-os.c |  7 ++-----
 lisp/FreeBSD-os.h | 11 +++++++++--
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/lisp/FreeBSD-os.c b/lisp/FreeBSD-os.c
index 85817ee66..ed3b63698 100644
--- a/lisp/FreeBSD-os.c
+++ b/lisp/FreeBSD-os.c
@@ -12,23 +12,20 @@
  * Much hacked by Paul Werkowski
  * GENCGC support by Douglas Crosher, 1996, 1997.
  *
- * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.c,v 1.11 2005/09/15 18:26:50 rtoy Exp $
+ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.c,v 1.12 2006/05/30 22:42:05 fgilham Exp $
  *
  */
 
-#include <stdio.h>
-#include <sys/param.h>
+#include "os.h"
 #include <sys/file.h>
 #include <errno.h>
 #include "./signal.h"
-#include "os.h"
 #include "arch.h"
 #include "globals.h"
 #include "interrupt.h"
 #include "lispregs.h"
 #include "internals.h"
 
-#include <sys/types.h>
 #include <signal.h>
 /* #include <sys/sysinfo.h> */
 #include <sys/proc.h>
diff --git a/lisp/FreeBSD-os.h b/lisp/FreeBSD-os.h
index 14bfd7ae8..49e8861c0 100644
--- a/lisp/FreeBSD-os.h
+++ b/lisp/FreeBSD-os.h
@@ -1,6 +1,6 @@
 /*
 
- $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.h,v 1.8 2005/09/15 18:26:50 rtoy Exp $
+ $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.h,v 1.9 2006/05/30 22:42:14 fgilham Exp $
 
  This code was written as part of the CMU Common Lisp project at
  Carnegie Mellon University, and has been placed in the public domain.
@@ -11,10 +11,16 @@
 #define _FREEBSD_OS_H_
 
 #include <osreldate.h>
-#include <sys/types.h>
+#include <sys/param.h>
+#include <sys/uio.h>
 #include <sys/mman.h>
 #include <sys/signal.h>
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
 #define MAP_ANONYMOUS MAP_ANON
 #define MAP_VARIABLE 0
 
@@ -47,5 +53,6 @@ void os_save_context(void);
 
 #define PROTECTION_VIOLATION_SIGNAL SIGBUS
 
+#undef PAGE_SIZE
 
 #endif /* _FREEBSD_OS_H_ */
-- 
GitLab