@freya@social.highenergymagic.net
Post #3950152
2026-07-20 04:21 UTC
@tranquillity@mastodon.minionflo.net yeah I tried that, -D_XPG6 and friends, it just didn't do it, so I just put the fucking extern int madvise() function declaration in the .cc file in an `extern "C" { } ` block. ugly, but it works
Replies (1)
-
@tranquillity@mastodon.minionflo.net 2026-07-20 04:23
@freya@social.highenergymagic.net I'd need to read the code to be sure But yep that works too. I do similar stuff when headers are broken: https://codeberg.org/TranquillityCodes/wl-hello/src/branch/master/main.c#L16-L19