This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA timevar.c and sys/resource.h
- To: gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
- Subject: RFA timevar.c and sys/resource.h
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Thu, 4 May 2000 17:29:42 +0200 (CEST)
Trying to bootstrap gcc on m68k-motorola-sysv I also had the following error :
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/gcc -I/gcc/config -I/gcc/../include /gcc/timevar.c
**Error: /gcc/timevar.c: 25: Can't find include file sys/resource.h
Below is a fix. OK to commit ?
Philppe De Muyter <phdm@macqel.be>
* timevar.c (sys/resource.h): File included only #ifdef
HAVE_SYS_RESOURCE_H.
Index: gcc/timevar.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/timevar.c,v
retrieving revision 1.4
diff -u -p -b -r1.4 timevar.c
--- timevar.c 2000/05/03 11:16:35 1.4
+++ timevar.c 2000/05/04 15:09:45
@@ -21,7 +21,9 @@
#include "config.h"
#include "system.h"
+#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
+#endif
#ifdef HAVE_SYS_TIMES_H
# include <sys/times.h>