Skip to content

Commit

Permalink
fesvr: Patch to not use deprecated ucontext.h
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Feb 28, 2024
1 parent 8b26e42 commit 3188cbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ $(VLT_FESVR)/${FESVR_VERSION}_unzip:
mkdir -p $(dir $@)
wget -O $(dir $@)/${FESVR_VERSION} https://github.com/riscv/riscv-isa-sim/tarball/${FESVR_VERSION}
tar xfm $(dir $@)${FESVR_VERSION} --strip-components=1 -C $(dir $@)
patch $(VLT_FESVR)/fesvr/context.h < patches/context.h.diff
touch $@

$(VLT_BUILDDIR)/lib/libfesvr.a: $(VLT_FESVR)/${FESVR_VERSION}_unzip
Expand Down
9 changes: 9 additions & 0 deletions target/snitch_cluster/patches/context.h.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@@ -7,8 +7,6 @@

#if defined(__GLIBC__)
# undef USE_UCONTEXT
-# define USE_UCONTEXT
-# include <ucontext.h>
# include <memory>
#include <limits.h>

0 comments on commit 3188cbc

Please sign in to comment.