Salome HOME
spns #32926: backport KERNEL & CONFIGURATION fixes on more recent platforms to ensure...
[tools/sat_salome.git] / products / patches / mesa-19.0.8-debug_symbol-gcc-10.0.patch
1 --- mesa/src/gallium/auxiliary/util/u_debug_symbol.c    2019-06-26 22:14:08.000000000 +0200
2 +++ mesa_new/src/gallium/auxiliary/util/u_debug_symbol.c        2021-05-18 12:25:33.795494688 +0200
3 @@ -270,7 +270,14 @@
4     debug_printf("\t%s\n", buf);
5  }
6  
7 -struct util_hash_table* symbols_hash;
8 +#ifdef __GNUC__
9 +#  include <features.h>
10 +#  if __GNUC_PREREQ(10,0)
11 +   extern struct util_hash_table* symbols_hash;
12 +# else
13 +  struct util_hash_table* symbols_hash;
14 +# endif
15 +#endif
16  static mtx_t symbols_mutex = _MTX_INITIALIZER_NP;
17  
18  static unsigned hash_ptr(void* p)