aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-05-23 17:42:19 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-05-23 17:42:19 +0000
commitf31e826ba314bc910beec6de5bf534f2462a00c7 (patch)
tree2d8c701cdb99568d7922c37d21a7fda0f8ea9913 /gcc/gcc.c
parent04de731462db7abf438903fa71b850ac046f1067 (diff)
downloadgcc-f31e826ba314bc910beec6de5bf534f2462a00c7.zip
gcc-f31e826ba314bc910beec6de5bf534f2462a00c7.tar.gz
gcc-f31e826ba314bc910beec6de5bf534f2462a00c7.tar.bz2
getopt.h (getopt): Also check HAVE_DECL_* when prototyping.
include: * getopt.h (getopt): Also check HAVE_DECL_* when prototyping. * libiberty.h (basename): Likewise. gcc: * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros rewritten from the internals of gcc_AC_NEED_DECLARATION{S}. * configure.in (gcc_AC_CHECK_DECLS): Call this instead of gcc_AC_NEED_DECLARATIONS. * dwarfout.c: Don't prototype time(). * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*. * system.h: Likewise. * toplev.c: Likewise. From-SVN: r34108
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index a8946a3..eb7a6c9 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -48,7 +48,7 @@ compilation is specified by a string called a "spec". */
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
-#ifdef NEED_DECLARATION_GETRUSAGE
+#if defined (HAVE_DECL_GETRUSAGE) && !HAVE_DECL_GETRUSAGE
extern int getrusage PARAMS ((int, struct rusage *));
#endif