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]

Re: PATCH to libiberty: size_t portability


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:

> We include sys/types.h unconditionally in libiberty and
> gcc/{t}system.h so we don't need the AC check for the header.
>
> Similarly, we don't use AC_TYPE_SIZE_T since sys/types.h universally
> declares size_t on all systems (at least those encountered so far.)
>
> I would just include sys/types.h and nothing more.

So how about this new patch then?

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

2000-07-22  Michael Sokolov  <msokolov@ivan.Harhan.ORG>

	* cp-demangle.c, mkstemps.c: #include <sys/types.h>.

*** cp-demangle.c.orig	Fri Jul 21 20:25:23 2000
--- cp-demangle.c	Fri Jul 21 18:02:01 2000
***************
*** 27,32 ****
--- 27,34 ----
  #include "config.h"
  #endif
  
+ #include <sys/types.h>
+ 
  #ifdef HAVE_STDLIB_H
  #include <stdlib.h>
  #endif
*** mkstemps.c.orig	Fri Jul 21 20:25:49 2000
--- mkstemps.c	Fri Jul 21 20:04:52 2000
***************
*** 20,25 ****
--- 20,26 ----
  #include "config.h"
  #endif
  
+ #include <sys/types.h>
  #ifdef HAVE_STDLIB_H
  #include <stdlib.h>
  #endif

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