From b5027be5f470830ac9543db3c52e076b13abd313 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Fri, 29 Mar 2019 13:32:24 +0300 Subject: 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 ^~~~~~~~~~~~~~~~ Signed-off-by: Baruch Siach Signed-off-by: David Oberhollenzer --- ubifs-utils/mkfs.ubifs/mkfs.ubifs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ubifs-utils') 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 #include +#ifdef WITH_CRYPTO #include +#endif #include -- cgit v1.2.3