X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-elfvsb%2Fmain.c;h=26542b8a1fcf3aeb5d12afcac1a37dbfd5cbbe02;hb=e4c4d240a370f0afc8a29b18f8e07affff9c4177;hp=0aaa83515a75a93f4704e4a437de584752819fbe;hpb=1345a0c087decf73553c7ed8e92ae0e997794eff;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c index 0aaa83515a..26542b8a1f 100644 --- a/ld/testsuite/ld-elfvsb/main.c +++ b/ld/testsuite/ld-elfvsb/main.c @@ -1,3 +1,20 @@ +#ifdef PROTECTED_CHECK +#include +#include + +int +main (void) +{ +#if defined (__GLIBC__) && (__GLIBC__ > 2 \ + || (__GLIBC__ == 2 \ + && __GLIBC_MINOR__ >= 2)) + puts ("yes"); +#else + puts ("no"); +#endif + return 0; +} +#else /* This is the main program for the shared library test. */ #include @@ -158,3 +175,4 @@ main () main_visibility_checkvar ()); return 0; } +#endif