--- libpkg/pkg.h.in.orig 2021-02-19 04:07:35.000000000 +1000 +++ libpkg/pkg.h.in 2021-11-30 16:36:11.742800000 +1000 @@ -67,6 +67,10 @@ #define OSMAJOR __FreeBSD__ #endif +#ifdef __BSDSUniX__ +#define OSMAJOR __BSDSUniX__ +#endif + /* Not supported under DragonFly */ #ifdef __DragonFly__ #undef OSMAJOR