summaryrefslogtreecommitdiff
path: root/ubifs-utils
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2019-03-29 13:32:24 +0300
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-03-29 12:50:03 +0100
commitb5027be5f470830ac9543db3c52e076b13abd313 (patch)
tree183694f315877465b47ded6274b69fab1dc516af /ubifs-utils
parentbce86d06d6ed2c03d0a0088a3c96a7a6e5e431db (diff)
mkfs.ubifs: fix build without openssl
Exclude openssl headers when WITH_CRYPTO is not defined. Fixes this build failure: In file included from ubifs-utils/mkfs.ubifs/mkfs.ubifs.c:25:0: ubifs-utils/mkfs.ubifs/mkfs.ubifs.h:49:10: fatal error: openssl/rand.h: No such file or directory #include <openssl/rand.h> ^~~~~~~~~~~~~~~~ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils')
-rw-r--r--ubifs-utils/mkfs.ubifs/mkfs.ubifs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.h b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.h
index aa03239..8f01860 100644
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.h
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.h
@@ -46,7 +46,9 @@
#include <uuid.h>
#include <sys/file.h>
+#ifdef WITH_CRYPTO
#include <openssl/rand.h>
+#endif
#include <mtd/ubifs-media.h>