diff options
Diffstat (limited to 'sys/crypto/sha2/sha2.c')
-rw-r--r-- | sys/crypto/sha2/sha2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/crypto/sha2/sha2.c b/sys/crypto/sha2/sha2.c index 3bbf3cc..1313db5 100644 --- a/sys/crypto/sha2/sha2.c +++ b/sys/crypto/sha2/sha2.c @@ -67,8 +67,10 @@ __FBSDID("$FreeBSD$"); * */ -#if defined(__bsdi__) || defined(__FreeBSD__) +#if defined(_KERNEL) && (defined(__bsdi__) || defined(__FreeBSD__)) #define assert(x) +#else +#include <assert.h> #endif |