This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFA timevar.c and sys/resource.h


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]