From: Nicholas Nethercote Date: Tue, 15 Jun 2004 08:34:10 +0000 (+0000) Subject: Cater for systems lacking AT_SYSINFO. X-Git-Tag: svn/VALGRIND_2_1_2~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bde18dba083fb58d5236261361b02e365153612e;p=thirdparty%2Fvalgrind.git Cater for systems lacking AT_SYSINFO. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2417 --- diff --git a/coregrind/stage1.c b/coregrind/stage1.c index 9baf531dd6..8b12130379 100644 --- a/coregrind/stage1.c +++ b/coregrind/stage1.c @@ -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 } }