aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDinesh Thirumurthy <dinesh.thirumurthy@gmail.com>2019-02-04 12:07:23 +0530
committerDinesh Thirumurthy <dinesh.thirumurthy@gmail.com>2019-02-04 12:07:23 +0530
commitec694bbddad0dc9af38597c7df63f139d67c77ce (patch)
treefdf27ec072431f2b5a4d12e92b6c652715e68218
parent5907e70c43c172f456f3bbb52c85ba156d025d55 (diff)
downloadriscv-isa-sim-ec694bbddad0dc9af38597c7df63f139d67c77ce.zip
riscv-isa-sim-ec694bbddad0dc9af38597c7df63f139d67c77ce.tar.gz
riscv-isa-sim-ec694bbddad0dc9af38597c7df63f139d67c77ce.tar.bz2
fixing compilation errors on openbsd
-rw-r--r--riscv/remote_bitbang.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/riscv/remote_bitbang.cc b/riscv/remote_bitbang.cc
index 21306dd..8453e85 100644
--- a/riscv/remote_bitbang.cc
+++ b/riscv/remote_bitbang.cc
@@ -5,6 +5,13 @@
#include <string.h>
#include <unistd.h>
+#ifndef AF_INET
+#include <sys/socket.h>
+#endif
+#ifndef INADDR_ANY
+#include <netinet/in.h>
+#endif
+
#include <algorithm>
#include <cassert>
#include <cstdio>