diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-02-07 22:51:14 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-02-22 14:50:48 +0300 |
commit | 790f5882b3e55ca0fc1de176e06204f98f0abc51 (patch) | |
tree | ab3a932c571c9bf97bc9df456c16dede470076bf | |
parent | 8741ecce92916291ffa75f4e1477a03b71faa179 (diff) | |
download | bdwgc-790f5882b3e55ca0fc1de176e06204f98f0abc51.tar.gz |
Fix 'undeclared getpagesize' compiler warning on AIX and OSF1
(a cherry-pick commit 20cfc4e61 from 'release-8_0')
* include/private/gcconfig.h [ALPHA && OSF1 || !GETPAGESIZE && AIX]:
Include unistd.h.
-rw-r--r-- | include/private/gcconfig.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index b3c966ce..3f5ebb49 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -1810,6 +1810,7 @@ extern int _end[]; # define DATAEND ((ptr_t) &_end) extern char ** environ; +# include <unistd.h> /* round up from the value of environ to the nearest page boundary */ /* Probably breaks if putenv is called before collector */ /* initialization. */ @@ -2519,7 +2520,7 @@ #endif #ifndef GETPAGESIZE -# if defined(SOLARIS) || defined(IRIX5) || defined(LINUX) \ +# if defined(AIX) || defined(IRIX5) || defined(LINUX) || defined(SOLARIS) \ || defined(NETBSD) || defined(FREEBSD) || defined(HPUX) # include <unistd.h> # endif |