--- usr/lib/soft_stdll/soft_specific.c.orig 2018-11-16 14:53:03 UTC +++ usr/lib/soft_stdll/soft_specific.c @@ -19,6 +19,10 @@ ****************************************************************************/ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + #include #include // for memcmp() et al #include @@ -36,7 +40,17 @@ #include #include #include +#if defined(__OpenBSD__) || defined(__FreeBSD__) +#include +#ifdef _BYTE_ORDER +#define __BYTE_ORDER _BYTE_ORDER +#endif +#ifdef _LITTLE_ENDIAN +#define __LITTLE_ENDIAN _LITTLE_ENDIAN +#endif +#else #include +#endif #include #include