|
From: Paul F. <pa...@so...> - 2023-01-24 21:01:17
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=e2eeebafa6cd48538e16104d674232220cb4e1d1 commit e2eeebafa6cd48538e16104d674232220cb4e1d1 Author: Paul Floyd <pj...@wa...> Date: Tue Jan 24 22:00:44 2023 +0100 FreeBSD: fix compile of auxv on FreeBSD 12 Diff: --- none/tests/freebsd/auxv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/none/tests/freebsd/auxv.c b/none/tests/freebsd/auxv.c index ae26d4b5de..6425fc3043 100644 --- a/none/tests/freebsd/auxv.c +++ b/none/tests/freebsd/auxv.c @@ -80,6 +80,7 @@ int main(int argc, char* argv[], char* envp[]) fprintf(stderr, "EXECPATH: %s\n", (char*)auxp->a_un.a_val); } break; +#if (FREEBSD_VERS >= FREEBSD_13_0) case AT_ARGV: if (auxp->a_un.a_val != 0) { @@ -104,6 +105,9 @@ int main(int argc, char* argv[], char* envp[]) /*fprintf(stderr, "PS_STRINGS ENVV: %s\n", *ppss->ps_envstr);*/ } break; +#endif + default: + break; } } } |