* system.h: Prototype getpagesize if missing.
* configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
* configure: Regenerate.
* config.in: Regenerate.
From-SVN: r84323
+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.
*/
#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
+
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
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"])
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