diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-26 08:37:51 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-26 08:37:51 +0000 |
commit | f23e53be88380f4dde772c5fd4c336271d01ebc4 (patch) | |
tree | dade61017c2c8ac775685f7f627c88736eb33207 /md5.c | |
parent | df7f21133745c668b7420b2efdceab77d37deec3 (diff) |
Pick the right location to endian.h based on OS in md5.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2570 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'md5.c')
-rwxr-xr-x | md5.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,12 @@ /* MD5 checksum routines used for authentication. Not covered by GPL, but in the public domain as per the copyright below */ -#include <endian.h> +#if defined( __FreeBSD__ ) || defined( __OpenBSD__ ) +# include <sys/endian.h> +#elif defined( BSD ) && ( BSD >= 199103 ) +# include <machine/endian.h> +#else +# include <endian.h> +#endif # if __BYTE_ORDER == __BIG_ENDIAN || BYTE_ORDER == BIG_ENDIAN # define HIGHFIRST 1 # endif |