aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-12 19:32:15 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-12 19:32:15 +0000
commit7d3505c55aae54c9610e8be1ff476ec8849c98e6 (patch)
tree8e8b024b2e8b547dc48d8024fe5b3001a7c46c0d /vl.h
parentfd872598d8d8cf78c1f12ed9661baf9ac0943c04 (diff)
bsd port (Markus Niemisto)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@800 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vl.h b/vl.h
index 639b473cd5..b640ad4e72 100644
--- a/vl.h
+++ b/vl.h
@@ -35,6 +35,7 @@
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/stat.h>
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
@@ -49,6 +50,13 @@
#include "cpu.h"
+#ifdef _BSD
+#define lseek64 lseek
+#define ftruncate64 ftruncate
+#define mkstemp64 mkstemp
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
#ifndef glue
#define xglue(x, y) x ## y
#define glue(x, y) xglue(x, y)