diff options
Diffstat (limited to 'usr/src/common')
| -rw-r--r-- | usr/src/common/crypto/sha1/sha1.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/src/common/crypto/sha1/sha1.c b/usr/src/common/crypto/sha1/sha1.c index 67dbd9979b..4a64eb2b8c 100644 --- a/usr/src/common/crypto/sha1/sha1.c +++ b/usr/src/common/crypto/sha1/sha1.c @@ -32,13 +32,13 @@ * and appreciated. */ -#ifndef _KERNEL +#if !defined(_KERNEL) && !defined(_BOOT) #include <stdint.h> #include <strings.h> #include <stdlib.h> #include <errno.h> #include <sys/systeminfo.h> -#endif /* !_KERNEL */ +#endif /* !_KERNEL && !_BOOT */ #include <sys/types.h> #include <sys/param.h> @@ -52,6 +52,11 @@ #define HAVE_HTONL #endif +#ifdef _BOOT +#define bcopy(_s, _d, _l) ((void) memcpy((_d), (_s), (_l))) +#define bzero(_m, _l) ((void) memset((_m), 0, (_l))) +#endif + static void Encode(uint8_t *, const uint32_t *, size_t); #if defined(__sparc) |
