diff options
author | Dinesh Thirumurthy <dinesh.thirumurthy@gmail.com> | 2019-02-04 12:07:23 +0530 |
---|---|---|
committer | Dinesh Thirumurthy <dinesh.thirumurthy@gmail.com> | 2019-02-04 12:07:23 +0530 |
commit | ec694bbddad0dc9af38597c7df63f139d67c77ce (patch) | |
tree | fdf27ec072431f2b5a4d12e92b6c652715e68218 | |
parent | 5907e70c43c172f456f3bbb52c85ba156d025d55 (diff) | |
download | riscv-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.cc | 7 |
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> |