On Fri, Jul 02, 2021 at 02:21:39PM +0100, Michael-John Turner wrote: > Hi, > > While attempting to package Starship for pkgsrc, I noticed that getconf(1) > is missing several variables that are available on both OpenBSD and > FreeBSD (I'm assuming because they're not returned by sysconf(3)). For > example, both OpenBSD and FreeBSD (and Linux and Darwin) support the > LONG_BIT variable, but NetBSD doesn't.
Do you really mean sysconf(3)? I don't see how that makes sense. But we could add #define LONG_BIT __LONG_WIDTH to <limits.h> inside proper #if guards. Martin