projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.22.15: 16 byte align assembly routines on x86 and x86-64
[sbcl.git]
/
src
/
runtime
/
linux-os.h
diff --git
a/src/runtime/linux-os.h
b/src/runtime/linux-os.h
index
411ade6
..
cfeaed4
100644
(file)
--- a/
src/runtime/linux-os.h
+++ b/
src/runtime/linux-os.h
@@
-22,16
+22,17
@@
#include <sys/syscall.h>
#include <asm/unistd.h>
#include <linux/version.h>
#include <sys/syscall.h>
#include <asm/unistd.h>
#include <linux/version.h>
-#include "target-arch-os.h"
-#include "target-arch.h"
-
-#define linuxversion(a, b, c) (((a)<<16)+((b)<<8)+(c))
+// Needs to be defined before including target-arch.h
typedef caddr_t os_vm_address_t;
typedef size_t os_vm_size_t;
typedef off_t os_vm_offset_t;
typedef int os_vm_prot_t;
typedef caddr_t os_vm_address_t;
typedef size_t os_vm_size_t;
typedef off_t os_vm_offset_t;
typedef int os_vm_prot_t;
+#include "target-arch-os.h"
+#include "target-arch.h"
+#define linuxversion(a, b, c) (((a)<<16)+((b)<<8)+(c))
+
#define OS_VM_PROT_READ PROT_READ
#define OS_VM_PROT_WRITE PROT_WRITE
#define OS_VM_PROT_EXECUTE PROT_EXEC
#define OS_VM_PROT_READ PROT_READ
#define OS_VM_PROT_WRITE PROT_WRITE
#define OS_VM_PROT_EXECUTE PROT_EXEC