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]

egcs-1.1.2/sysV68 fortran patches


In order to compile egcs-1.1.2 on sysV68 (m68k-motorola-sysv) bootstrapped
with the native cc, I needed to apply the following patch in gcc/f :

Mon May 31 02:22:55 1999  Philippe De Muyter  <phdm@macqel.be>

	* com.c (fcntl.h): Do not include this file directly here; it is
	already included indirectly.
	* proj.h (offsetof): Macro defined here if not provided by the
	system files.

--- ./gcc/f/com.c	Sun May 30 14:25:35 1999
+++ ./gcc/f/com.c	Sat May 22 15:45:45 1999
@@ -143,10 +143,6 @@
 # include <sys/resource.h>
 #endif
 
-#if HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
-
 /* This defines "errno" properly for VMS, and gives us EACCES. */
 #include <errno.h>
 
--- ./gcc/f/proj.h	Sun May 30 14:25:36 1999
+++ ./gcc/f/proj.h	Fri May 21 12:48:19 1999
@@ -52,6 +52,9 @@
 #if HAVE_STDDEF_H
 #include <stddef.h>
 #endif
+#ifndef offsetof
+#define offsetof(type, field) ((char*)&((type*)0)->field - (char*)0)
+#endif
 
 /* Generally useful definitions. */
 


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