Patch installed to system.h, don't check HAVE_SYS_TYPES_H

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Thu May 4 12:22:00 GMT 2000


On Sept 7, 1999 during a merge from gcc2-ss-010999, gcc/system.h
started wrapping the inclusion of sys/types.h with HAVE_SYS_TYPES_H.
But AFAICT, this symbol was never defined nor was any autoconf check
ever done.  (This means we never included that header since Sept 99.)

Out common practice has always been to include sys/types.h
unconditionally and in fact libiberty does that in several places.
So there should not be any portability concern.

I removed the wrapper.

		--Kaveh

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.6485
diff -u -p -r1.6485 ChangeLog
--- ChangeLog	2000/05/04 18:15:05	1.6485
+++ ChangeLog	2000/05/04 19:15:10
@@ -1,3 +1,7 @@
+2000-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
+
 2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>
 
 	* i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move 
Index: system.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/system.h,v
retrieving revision 1.65
diff -u -p -r1.65 system.h
--- system.h	2000/04/25 11:21:13	1.65
+++ system.h	2000/05/04 19:15:10
@@ -164,9 +164,7 @@ extern int fputs_unlocked PARAMS ((const
 #define TARGET_ESC 033
 #endif
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include <errno.h>
 


More information about the Gcc-patches mailing list