diff options
| author | Robert Millan <rmh@FreeBSD.org> | 2013-07-09 10:27:26 +0000 |
|---|---|---|
| committer | Robert Millan <rmh@FreeBSD.org> | 2013-07-09 10:27:26 +0000 |
| commit | f19122edbf176030db7d667f6edb82c573298f12 (patch) | |
| tree | d54e13237446f9fe9fc84ca8ea833503b1d10d1b /sys/crypto | |
| parent | b40e2b6d14ab4cea45a6b2b430095099edb5bf75 (diff) | |
Notes
Diffstat (limited to 'sys/crypto')
| -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 3bbf3cc6032e..1313db5c92a8 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 |
