diff options
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | riscv/remote_bitbang.cc | 7 | ||||
-rwxr-xr-x | scripts/vcs-version.sh | 2 |
3 files changed, 22 insertions, 1 deletions
@@ -23,6 +23,20 @@ install path, and that the riscv-fesvr package is installed there. $ make $ [sudo] make install +Build Steps on OpenBSD +---------------------- + +Install bash, gmake, dtc, and use clang. + + $ pkg_add bash gmake dtc + $ exec bash + $ export CC=cc; export CXX=c++ + $ mkdir build + $ cd build + $ ../configure --prefix=$RISCV --with-fesvr=$RISCV + $ gmake + $ [doas] make install + Compiling and Running a Simple C Program ------------------------------------------- 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> diff --git a/scripts/vcs-version.sh b/scripts/vcs-version.sh index 31fae86..692c071 100755 --- a/scripts/vcs-version.sh +++ b/scripts/vcs-version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #========================================================================= # vcs-version.sh [options] [src-dir] #========================================================================= |