This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] to gcc/f: Don't include the time headers twice
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] to gcc/f: Don't include the time headers twice
- From: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Date: Tue, 16 Jan 01 12:55:47 PST
Hi there,
The patch below fixes a tiny portability problem in the FORTRAN front end. Its
proj.h includes system.h, which in turn includes the right time headers as
determined by configure. Therefore, it is unnecessary to include them again,
and doing so breaks builds on systems where they are not protected against
multiple inclusion (such as 4.3BSD).
--
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force
1351 VINE AVE APT 27 Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA (home office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP)
2001-01-16 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* com.c: Don't explicitly include any time headers, the right ones are
already included by proj.h.
Index: com.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/f/com.c,v
retrieving revision 1.107
diff -p -r1.107 com.c
*** com.c 2001/01/15 16:52:49 1.107
--- com.c 2001/01/16 20:51:33
*************** the Free Software Foundation, 59 Temple
*** 124,142 ****
# endif
#endif
! #ifndef RLIMIT_STACK
! # include <time.h>
! #else
! # if TIME_WITH_SYS_TIME
! # include <sys/time.h>
! # include <time.h>
! # else
! # if HAVE_SYS_TIME_H
! # include <sys/time.h>
! # else
! # include <time.h>
! # endif
! # endif
# include <sys/resource.h>
#endif
--- 124,130 ----
# endif
#endif
! #ifdef RLIMIT_STACK
# include <sys/resource.h>
#endif