]> git.sur5r.net Git - u-boot/blobdiff - tools/mxsimage.c
tools/mxsimage: Support building with LibreSSL
[u-boot] / tools / mxsimage.c
index 32a7978cae09d697e93146d76f489ecf96e5bb9b..c8f1f204e3c329a03603985d9d2fc1785ba92551 100644 (file)
@@ -26,7 +26,8 @@
  * OpenSSL 1.1.0 and newer compatibility functions:
  * https://wiki.openssl.org/index.php/1.1_API_Changes
  */
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+    (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
 static void *OPENSSL_zalloc(size_t num)
 {
        void *ret = OPENSSL_malloc(num);