mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-01 11:34:17 +01:00
Previously, we just added the openbsd header directories to the search path with -idirafter to prevent openbsd headers from being used where we already have musl headers. However, if the system had its own version of the headers (such as sys/tree.h), those would get preferred over the openbsd versions, which may result in build failures due to slight incompatibilities. To fix this, just isolate the few headers we do need into their own directory, and include it normally (with -I/-isystem).