"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: "got fetch" fails on PROFILE=1 build
To:
gameoftrees@openbsd.org
Date:
Tue, 12 Apr 2022 14:17:47 +0200

Download raw body.

Thread
Mikhail:

> > We could simply disable both pledge and unveil if profiling is used.
> > It is just a debug build so there is no reason to make things complicated.
> 
> Disabling looks like the best solution.

> +#ifndef PROFILE
> -#ifdef PROFILE
> -#endif
> +#endif

Instead of this #ifdef maze, should we neuter pledge() and unveil()
with defines in a central header file?

#ifdef PROFILE
#undef pledge
#undef unveil
#define pledge(x, y)    0
#define unveil(x, y)    0
#endif

What would be a good place?

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de