diff --git a/lib/bind/resolv/mtctxres.c b/lib/bind/resolv/mtctxres.c index 2a9c63a0b4..f33cf11e3f 100644 --- a/lib/bind/resolv/mtctxres.c +++ b/lib/bind/resolv/mtctxres.c @@ -17,7 +17,7 @@ static int mt_key_initialized = 0; static int __res_init_ctx(void); static void __res_destroy_ctx(void *); -#ifdef sun +#if defined(sun) && !defined(__GNUC__) #pragma init (_mtctxres_init) #endif #endif