]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Cater for systems lacking AT_SYSINFO.
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 15 Jun 2004 08:34:10 +0000 (08:34 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 15 Jun 2004 08:34:10 +0000 (08:34 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2417

coregrind/stage1.c

index 9baf531dd6963fd7091fe96d384b0acf4aa0aedd..8b1213037976ea595317080d4735b463af98ad87 100644 (file)
@@ -133,12 +133,16 @@ static void *fix_auxv(void *v_init_esp, const struct exeinfo *info)
         auxv->u.a_val = info->entry;
         break;
 
+#if (defined(AT_SYSINFO) || defined(AT_SYSINFO_EHDR))
+#ifdef AT_SYSINFO
       case AT_SYSINFO:
+#endif
 #ifdef AT_SYSINFO_EHDR
       case AT_SYSINFO_EHDR:
 #endif
         auxv->a_type = AT_IGNORE;
         break;
+#endif
       }
    }