summaryrefslogtreecommitdiff
path: root/src/base/vnc
diff options
context:
space:
mode:
authorRuslan Bukin <br@bsdpad.com>2015-04-29 22:35:23 -0500
committerRuslan Bukin <br@bsdpad.com>2015-04-29 22:35:23 -0500
commit81f3211149c051e4f70b0b12eb3709dfc6e0395c (patch)
tree9b9d276586b948252ec6a39a2748dbca43fe92d3 /src/base/vnc
parent52a3bc5e5c3cc694b3f8b29f38b0dd296b91350f (diff)
downloadgem5-81f3211149c051e4f70b0b12eb3709dfc6e0395c.tar.xz
arch, base, dev, kern, sym: FreeBSD support
This adds support for FreeBSD/aarch64 FS and SE mode (basic set of syscalls only) Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/base/vnc')
-rw-r--r--src/base/vnc/vncserver.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/base/vnc/vncserver.cc b/src/base/vnc/vncserver.cc
index 77a4316ab..6dc2f2f10 100644
--- a/src/base/vnc/vncserver.cc
+++ b/src/base/vnc/vncserver.cc
@@ -44,16 +44,24 @@
#include <sys/ioctl.h>
#include <sys/stat.h>
+
+#if defined(__FreeBSD__)
+#include <termios.h>
+
+#else
#include <sys/termios.h>
-#include <sys/types.h>
+
+#endif
+#include "base/vnc/vncserver.hh"
+
#include <fcntl.h>
#include <poll.h>
+#include <sys/types.h>
#include <unistd.h>
#include <cerrno>
#include <cstdio>
-#include "base/vnc/vncserver.hh"
#include "base/atomicio.hh"
#include "base/bitmap.hh"
#include "base/misc.hh"