diff options
author | Kevin Ryde <user42@zip.com.au> | 2003-05-06 00:43:08 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2003-05-06 00:43:08 +0200 |
commit | 9e61f0deb5e5069e3663d612fff782d7023ca1e9 (patch) | |
tree | afe626163ff975cea36f9f24da50f210496de52a /tune/freq.c | |
parent | 5acd871966c74ec76adddfefff4540fab06d7848 (diff) | |
download | gmp-9e61f0deb5e5069e3663d612fff782d7023ca1e9.tar.gz |
* tune/freq.c (<sys/sysinfo.h>): Include only when needed for
getsysinfo(), to avoid a problem with this file on AIX 5.1.
Diffstat (limited to 'tune/freq.c')
-rw-r--r-- | tune/freq.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tune/freq.c b/tune/freq.c index 199767ce5..268408edb 100644 --- a/tune/freq.c +++ b/tune/freq.c @@ -55,7 +55,12 @@ MA 02111-1307, USA. */ #include <sys/processor.h> /* for solaris processor_info_t */ #endif -#if HAVE_SYS_SYSINFO_H +/* On AIX 5.1 with gcc 2.9-aix51-020209 in -maix64 mode, <sys/sysinfo.h> + gets an error about "fill" in "struct cpuinfo" having a negative size, + apparently due to __64BIT_KERNEL not being defined because _KERNEL is not + defined. Avoid this file if we don't actually need it, which we don't on + AIX since there's no getsysinfo there. */ +#if HAVE_SYS_SYSINFO_H && HAVE_GETSYSINFO #include <sys/sysinfo.h> /* for OSF getsysinfo */ #endif |