Skip to content
Snippets Groups Projects
Commit 0bba8011 authored by fgilham's avatar fgilham
Browse files

Fix FreeBSD version to get rid of some warnings when building the lisp

executable.
parent 2fd33a55
No related branches found
No related tags found
No related merge requests found
...@@ -12,23 +12,20 @@ ...@@ -12,23 +12,20 @@
* Much hacked by Paul Werkowski * Much hacked by Paul Werkowski
* GENCGC support by Douglas Crosher, 1996, 1997. * 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 "os.h"
#include <sys/param.h>
#include <sys/file.h> #include <sys/file.h>
#include <errno.h> #include <errno.h>
#include "./signal.h" #include "./signal.h"
#include "os.h"
#include "arch.h" #include "arch.h"
#include "globals.h" #include "globals.h"
#include "interrupt.h" #include "interrupt.h"
#include "lispregs.h" #include "lispregs.h"
#include "internals.h" #include "internals.h"
#include <sys/types.h>
#include <signal.h> #include <signal.h>
/* #include <sys/sysinfo.h> */ /* #include <sys/sysinfo.h> */
#include <sys/proc.h> #include <sys/proc.h>
......
/* /*
$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 This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University, and has been placed in the public domain. Carnegie Mellon University, and has been placed in the public domain.
...@@ -11,10 +11,16 @@ ...@@ -11,10 +11,16 @@
#define _FREEBSD_OS_H_ #define _FREEBSD_OS_H_
#include <osreldate.h> #include <osreldate.h>
#include <sys/types.h> #include <sys/param.h>
#include <sys/uio.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/signal.h> #include <sys/signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_VARIABLE 0 #define MAP_VARIABLE 0
...@@ -47,5 +53,6 @@ void os_save_context(void); ...@@ -47,5 +53,6 @@ void os_save_context(void);
#define PROTECTION_VIOLATION_SIGNAL SIGBUS #define PROTECTION_VIOLATION_SIGNAL SIGBUS
#undef PAGE_SIZE
#endif /* _FREEBSD_OS_H_ */ #endif /* _FREEBSD_OS_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment