On 3/12/26 6:10 AM, Warner Losh wrote:
thunk.c is the same between linux-user and bsd-user (out of tree),
so share it between the two.
Signed-off-by: Warner Losh <[email protected]>
---
As part of upstream blitz bsd-user, I've discovered that bsd-user and
linux-user have the same thunk.c file. Rather than copy it, put it into
the common-user directory and share it. It has to be compiled
per-target, unlike the rest of common-user, so modify linux-user and
bsd-user to grab it from there.
---
bsd-user/meson.build | 1 +
{linux-user => common-user}/thunk.c | 0
linux-user/meson.build | 2 +-
3 files changed, 2 insertions(+), 1 deletion(-)
Indeed, thunk.c seems to be highly target specific.
A good solution would be to move common functions to common-user/thunk.c
and the rest in include/user/thunk.h. It may be cleaner than doing the
meson hack. Or leave it duplicated for now, except if you plan on
modifying it.
Regards,
Pierrick