I have a project (https://github.com/natecraddock/zf) that uses std.os.system in a few places. A recent change requires me to use exe.linkLibC(). Now I'm running into issues with missing constants in std.os.system on Linux. For example, std.os.system.ICRNL isn't found on Linux now.
I looked into this and found the switch in os.zig that sets system. The issue is std.c is missing some constants that were previously found in std.os.linux. I tried overriding std.os.system in my root source file as the comment suggests and ran into some more missing fields. So now I'm just manually using std.os.linux or std.c depending on my target. It feels a bit messy though.
I'm sure these issues are just due to the stdlib being a work in progress. Is there is a better or recommended way to approach fixing this?