Subject: gcc2/libgcc won't compile
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: John Brezak <brezak@ch.hp.com>
List: netbsd-bugs
Date: 12/24/1993 11:59:17
It is looking for "size_t" which doesn't seem to get picked up anymore. For
now I've included <sys/types.h> in a few places in libgcc2.c, but this probably
isn't the POSIX thing to do.

*** libgcc2.c~	Fri Dec 17 01:09:37 1993
--- libgcc2.c	Fri Dec 24 11:47:54 1993
***************
*** 1095,1101 ****
  #undef double
  
  #ifdef L__gcc_bcmp
! 
  /* Like bcmp except the sign is meaningful.
     Reult is negative if S1 is less than S2,
     positive if S1 is greater, 0 if S1 and S2 are equal.  */
--- 1095,1101 ----
  #undef double
  
  #ifdef L__gcc_bcmp
! #include <sys/types.h>
  /* Like bcmp except the sign is meaningful.
     Reult is negative if S1 is less than S2,
     positive if S1 is greater, 0 if S1 and S2 are equal.  */
***************
*** 1271,1276 ****
--- 1271,1277 ----
  
  #undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch.  */
  #include <stdio.h>
+ #include <sys/types.h>
  /* This is used by the `assert' macro.  */
  void
  __eprintf (string, expression, line, filename)
***************
*** 1321,1326 ****
--- 1322,1328 ----
  /* frills for C++ */
  
  #ifdef L_op_new
+ #include <sys/types.h>
  typedef void (*vfp)(void);
  
  extern vfp __new_handler;
***************
*** 1347,1352 ****
--- 1349,1355 ----
  /* This gets us __GNU_LIBRARY__.  */
  #undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch.  */
  #include <stdio.h>
+ #include <sys/types.h>
  
  #ifdef __GNU_LIBRARY__
    /* Avoid forcing the library's meaning of `write' on the user program

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 John Brezak                    UUCP:     uunet!apollo.hp!brezak
 Hewlett Packard/Apollo         Internet: brezak@ch.hp.com
 300 Apollo Drive               Phone:    (508) 436-4915
 Chelmsford, Massachusetts      Fax:      (508) 436-5103

------------------------------------------------------------------------------