diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-08 23:05:29 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-08 23:05:29 +0000 |
commit | 31671de5dfef98ee6eb46e8435137751bfaf8acc (patch) | |
tree | 9da29492c80474d5809a2e4b8c1abef235ea8a39 | |
parent | f48ac6551329833c376450dc03fd48796f2e68bd (diff) | |
download | ppe42-gcc-31671de5dfef98ee6eb46e8435137751bfaf8acc.tar.gz ppe42-gcc-31671de5dfef98ee6eb46e8435137751bfaf8acc.zip |
* system.h: Prototype getpagesize if missing.
* configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
* configure: Regenerate.
* config.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84323 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config.in | 4 | ||||
-rwxr-xr-x | gcc/configure | 3 | ||||
-rw-r--r-- | gcc/configure.ac | 2 | ||||
-rw-r--r-- | gcc/system.h | 4 |
5 files changed, 18 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0540720b3b9..e6886763fd8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com> + + * system.h: Prototype getpagesize if missing. + * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS. + * configure: Regenerate. + * config.in: Regenerate. + 2004-07-08 Richard Henderson <rth@redhat.com> * config/fr30/fr30-protos.h (fr30_va_arg): Remove. diff --git a/gcc/config.in b/gcc/config.in index ab3a6708329..2b213a2fdff 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -198,6 +198,10 @@ */ #undef HAVE_DECL_GETOPT +/* Define to 1 if we found a declaration for 'getpagesize', otherwise define + to 0. */ +#undef HAVE_DECL_GETPAGESIZE + /* Define to 1 if we found a declaration for 'getrlimit', otherwise define to 0. */ #undef HAVE_DECL_GETRLIMIT diff --git a/gcc/configure b/gcc/configure index b3cfb378283..f2a5e6775f3 100755 --- a/gcc/configure +++ b/gcc/configure @@ -8208,10 +8208,11 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" + for ac_func in getenv atol sbrk abort atof getcwd getwd \ strsignal putc_unlocked fputs_unlocked fwrite_unlocked \ fprintf_unlocked strstr errno snprintf vasprintf \ - malloc realloc calloc free basename getopt clock + malloc realloc calloc free basename getopt clock getpagesize do ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp` echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 diff --git a/gcc/configure.ac b/gcc/configure.ac index d965c1147b3..7535bc93b3d 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -998,7 +998,7 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd \ strsignal putc_unlocked fputs_unlocked fwrite_unlocked \ fprintf_unlocked strstr errno snprintf vasprintf \ - malloc realloc calloc free basename getopt clock, , ,[ + malloc realloc calloc free basename getopt clock getpagesize, , ,[ #include "ansidecl.h" #include "system.h"]) diff --git a/gcc/system.h b/gcc/system.h index 90d906b3b3a..c23a34954c6 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -303,6 +303,10 @@ extern char *getenv (const char *); extern int getopt (int, char * const *, const char *); #endif +#if defined(HAVE_DECL_GETPAGESIZE) && !HAVE_DECL_GETPAGESIZE +extern long getpagesize (void); +#endif + #if defined (HAVE_DECL_GETWD) && !HAVE_DECL_GETWD extern char *getwd (char *); #endif |