| Index: ports/glibc-compat/src/res_libc.c
|
| ===================================================================
|
| --- ports/glibc-compat/src/res_libc.c (revision 1237)
|
| +++ ports/glibc-compat/src/res_libc.c (working copy)
|
| @@ -146,7 +146,9 @@
|
| This differs from plain `struct __res_state _res;' in that it doesn't
|
| create a common definition, but a plain symbol that resides in .bss,
|
| which can have an alias. */
|
| -struct __res_state _res __attribute__((section (".bss")));
|
| +/* Removed __attribute__((section(".bss"))) because PNaCl doesn't support
|
| + this trick and trick with removing common definition is not critical. */
|
| +struct __res_state _res /* __attribute__((section (".bss"))) */;
|
|
|
| #define USE___THREAD 1
|
|
|
| @@ -155,13 +157,6 @@
|
| __thread struct __res_state *__resp = &_res;
|
| #endif
|
|
|
| -/* We declare this with compat_symbol so that it's not
|
| - visible at link time. Programs must use the accessor functions. */
|
| -#if defined HAVE_ELF && defined SHARED && defined DO_VERSIONING
|
| -# include <shlib-compat.h>
|
| -compat_symbol (libc, _res, _res, GLIBC_2_0);
|
| -#endif
|
| -
|
| #include <shlib-compat.h>
|
|
|
| #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2)
|
|
|