digest-list-tools/fix-multiple-definition-of-pgp_algo_mapping.patch
2021-08-03 00:41:40 +08:00

27 lines
800 B
Diff

From e5c1f8066959b5ed3ca7bca3acb4a59cb3e3cd16 Mon Sep 17 00:00:00 2001
From: Zhang Tianxing <zhangtianxing3@huawei.com>
Date: Tue, 3 Aug 2021 00:32:46 +0800
Subject: [PATCH] fix multiple definition of pgp_algo_mapping
Signed-off-by: Zhang Tianxing <zhangtianxing3@huawei.com>
---
include/lib.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/lib.h b/include/lib.h
index 604871b..27b71eb 100644
--- a/include/lib.h
+++ b/include/lib.h
@@ -44,7 +44,7 @@ enum pgp_hash_algo {
PGP_HASH__LAST
};
-enum hash_algo pgp_algo_mapping[PGP_HASH__LAST];
+extern enum hash_algo pgp_algo_mapping[PGP_HASH__LAST];
int read_file_from_path(int dirfd, const char *path, void **buf, loff_t *size);
int read_write_file_from_path(int dirfd, const char *path, void **buf,
--
2.26.2