summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-05-01 13:29:16 +1000
committerDamien Miller <djm@mindrot.org>2020-05-01 13:29:16 +1000
commitc0dfd18dd1c2107c73d18f70cd164f7ebd434b08 (patch)
treed8d59ac98dc253deeb82e574675ce2a82f89f950
parenta01817a9f63dbcbbc6293aacc4019993a4cdc7e3 (diff)
wrap sha2.h inclusion in #ifdef HAVE_SHA2_H
-rw-r--r--sk-usbhid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sk-usbhid.c b/sk-usbhid.c
index db6c0057..25250824 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -24,7 +24,9 @@
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
+#ifdef HAVE_SHA2_H
#include <sha2.h>
+#endif
#ifdef WITH_OPENSSL
#include <openssl/opensslv.h>