summaryrefslogtreecommitdiff
path: root/package/gnupg/patches/patch-include_memory_h
blob: 99e4faa9147b0d9b3e7e0f44bbb053287764f80f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- gnupg-1.4.23.orig/include/memory.h	2016-04-22 09:30:18.000000000 +0200
+++ gnupg-1.4.23/include/memory.h	2021-09-17 16:07:15.504427621 +0200
@@ -93,6 +93,8 @@ unsigned secmem_get_flags(void);
 #ifndef EXTERN_UNLESS_MAIN_MODULE
 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
 #define EXTERN_UNLESS_MAIN_MODULE extern
+#elif defined (__GNUC__) && __GNUC__ >= 10
+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
 #else
 #define EXTERN_UNLESS_MAIN_MODULE 
 #endif