Cater for systems lacking AT_SYSINFO.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2417 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/stage1.c b/coregrind/stage1.c
index 9baf531..8b12130 100644
--- a/coregrind/stage1.c
+++ b/coregrind/stage1.c
@@ -133,12 +133,16 @@
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
}
}