--- usr/lib/pkcs11/soft_stdll/soft_specific.c.orig 2016-04-29 17:26:46 UTC +++ usr/lib/pkcs11/soft_stdll/soft_specific.c @@ -298,7 +298,9 @@ ****************************************************************************/ +#ifndef _BSD_SOURCE #define _BSD_SOURCE +#endif #include #include // for memcmp() et al @@ -317,7 +319,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