Am 12.02.2025 um 18:16 hat Paolo Bonzini geschrieben: > On 2/12/25 16:13, Kevin Wolf wrote: > > Or if you have to define the constants anyway - you currently do this > > only for Windows, but for into_negative_errno() you might need it on > > Linux, too - and it wouldn't be a problem for the constants to be > > signed (that they are unsigned is the main reason why it becomes so ugly > > with the bindgen constants), you could just make it -errno::EINVAL > > again. > > Or just include the libc crate, see attachment.
I assume that sooner or later we'll have a reason to include it anyway, so that might honestly be the best option. Do you want to post it as a proper patch? It seems to depend on your errno patch, but that shouldn't be a problem because we still want that one, too. Kevin