summaryrefslogtreecommitdiffstats
path: root/sys/crypto
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-11-01 08:56:39 +0000
committerphk <phk@FreeBSD.org>2002-11-01 08:56:39 +0000
commite7f8941120daac766326c39b1dc5bfd35f73b14e (patch)
tree96425fd61fa6b949e7b2db9e10527d1b772894b6 /sys/crypto
parent707c22856ed977c8fe8c8c4e2abc6a355f5e77a0 (diff)
downloadFreeBSD-src-e7f8941120daac766326c39b1dc5bfd35f73b14e.zip
FreeBSD-src-e7f8941120daac766326c39b1dc5bfd35f73b14e.tar.gz
Make this compilable from userland as well.
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/sha2/sha2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/crypto/sha2/sha2.c b/sys/crypto/sha2/sha2.c
index 0ae7d84..8740fbb 100644
--- a/sys/crypto/sha2/sha2.c
+++ b/sys/crypto/sha2/sha2.c
@@ -39,7 +39,11 @@
#include <sys/types.h>
#include <sys/time.h>
+#ifdef _KERNEL
#include <sys/systm.h>
+#else
+#include <string.h>
+#endif
#include <machine/endian.h>
#include <crypto/sha2/sha2.h>
OpenPOWER on IntegriCloud