Index: devel/valgrind/Makefile =================================================================== --- devel/valgrind/Makefile +++ devel/valgrind/Makefile @@ -1,5 +1,6 @@ PORTNAME= valgrind PORTVERSION= 3.20.0 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= SOURCEWARE/valgrind Index: devel/valgrind/files/patch-coregrind_m__initimg_initimg-freebsd.c =================================================================== --- /dev/null +++ devel/valgrind/files/patch-coregrind_m__initimg_initimg-freebsd.c @@ -0,0 +1,17 @@ +--- coregrind/m_initimg/initimg-freebsd.c.orig 2022-10-27 17:22:31 UTC ++++ coregrind/m_initimg/initimg-freebsd.c +@@ -280,6 +280,14 @@ static HChar** setup_client_env ( HChar** origenv, con + /*=== Setting up the client's stack ===*/ + /*====================================================================*/ + ++#ifndef AT_USRSTACKBASE ++#define AT_USRSTACKBASE 35 /* Top of user stack */ ++#endif /* AT_USRSTACKBASE */ ++ ++#ifndef AT_USRSTACKLIM ++#define AT_USRSTACKLIM 36 /* Grow limit of user stack */ ++#endif /* AT_USRSTACKLIM */ ++ + /* Add a string onto the string table, and return its address */ + static HChar *copy_str(HChar **tab, const HChar *str) + {