From: Winnie Chang Date: Wed, 22 Aug 2018 03:06:05 +0000 (-0500) Subject: backports: add header file for function memcmp X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a87d6c57a9d95390f89cc4092099171c01520404;p=openwrt%2Fstaging%2Fblogic.git backports: add header file for function memcmp Function memcmp is implicit declaration on kernel 4.9.88 ARM platform. backport-include/keys/asymmetric-type.h uses function memcmp but its caller compat/verification/verify.c and all its related header files do not include string.h. The header file is usually included from arch/arm/include/asm, but in this configuration, it doesn't. We need to be safe and insure string.h is there. Signed-off-by: Winnie Chang Signed-off-by: Johannes Berg --- diff --git a/backport/backport-include/keys/asymmetric-type.h b/backport/backport-include/keys/asymmetric-type.h index ee9c418618ac..5744de9cee0f 100644 --- a/backport/backport-include/keys/asymmetric-type.h +++ b/backport/backport-include/keys/asymmetric-type.h @@ -2,6 +2,8 @@ #define __BP_ASYMMETRIC_TYPE_H #ifdef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION +#include + struct asymmetric_key_id { unsigned short len; unsigned char data[];