From: Tom Hughes Date: Thu, 22 Apr 2004 18:12:31 +0000 (+0000) Subject: Cope with AT_xCACHEBSIZE not being defined, which they aren't on systems X-Git-Tag: svn/VALGRIND_2_1_2~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00958cb0de4484a696b0519b00bacbc420e6d100;p=thirdparty%2Fvalgrind.git Cope with AT_xCACHEBSIZE not being defined, which they aren't on systems with 2.2 kernels and, it seems, on some systems with 2.4 kernels. CCMAIL: 79179-done@bugs.kde.org git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2384 --- diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 9da5b98d27..c8cfcfaf4d 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -50,6 +50,18 @@ #include #include +#ifndef AT_DCACHEBSIZE +#define AT_DCACHEBSIZE 19 +#endif /* AT_DCACHEBSIZE */ + +#ifndef AT_ICACHEBSIZE +#define AT_ICACHEBSIZE 20 +#endif /* AT_ICACHEBSIZE */ + +#ifndef AT_UCACHEBSIZE +#define AT_UCACHEBSIZE 21 +#endif /* AT_UCACHEBSIZE */ + #ifndef AT_SYSINFO #define AT_SYSINFO 32 #endif /* AT_SYSINFO */