Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ceb7b8e5 authored by that's avatar that Committed by Dees Troy
Browse files

crypto: fix build in < 5.0 tree

Change-Id: Ie4ed3e91cfb7e509bac1d6db885bd3f415d2b168
parent 20172791
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
LOCAL_PATH := $(call my-dir)
ifeq ($(TW_INCLUDE_L_CRYPTO), true)
ifeq ($(TW_INCLUDE_CRYPTO), true)
include $(CLEAR_VARS)

common_c_includes := \
+2 −0
Original line number Diff line number Diff line
@@ -131,6 +131,7 @@ static int keymaster_check_compatibility()

    printf("keymaster version is %d\n", keymaster_dev->common.module->module_api_version);

#if (KEYMASTER_HEADER_VERSION >= 3)
    if (keymaster_dev->common.module->module_api_version
            < KEYMASTER_MODULE_API_VERSION_0_3) {
        rc = 0;
@@ -141,6 +142,7 @@ static int keymaster_check_compatibility()
        rc = 1;
    }

#endif
out:
    keymaster_close(keymaster_dev);
    return rc;