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]

small libio patch



Some libio code uses mem* functions without including string.h first.  Tsk
Tsk.


	* editbuf.cc, parsestream.cc, pfstream.cc: Include string.h.

Index: editbuf.cc
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/editbuf.cc,v
retrieving revision 1.2
diff -c -3 -p -r1.2 editbuf.cc
*** editbuf.cc	1999/09/04 15:08:50	1.2
--- editbuf.cc	1999/09/30 07:09:35
*************** Written by Per Bothner (bothner@cygnus.c
*** 31,36 ****
--- 31,37 ----
  #include "editbuf.h"
  #include <stddef.h>
  #include <stdlib.h>
+ #include <string.h>
  
  /* NOTE: Some of the code here is taken from GNU emacs */
  /* Hence this file falls under the GNU License! */
Index: parsestream.cc
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/parsestream.cc,v
retrieving revision 1.2
diff -c -3 -p -r1.2 parsestream.cc
*** parsestream.cc	1997/09/06 07:43:48	1.2
--- parsestream.cc	1999/09/30 07:09:36
*************** Written by Per Bothner (bothner@cygnus.c
*** 30,35 ****
--- 30,36 ----
  #include "libioP.h"
  #include "parsestream.h"
  #include <stdlib.h>
+ #include <string.h>
  
  streambuf* parsebuf::setbuf(char*, int)
  {
Index: pfstream.cc
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/pfstream.cc,v
retrieving revision 1.2
diff -c -3 -p -r1.2 pfstream.cc
*** pfstream.cc	1999/09/04 15:08:50	1.2
--- pfstream.cc	1999/09/30 07:09:36
*************** the executable file might be covered by 
*** 30,35 ****
--- 30,36 ----
  #include "libioP.h"
  #include <pfstream.h>
  #include <procbuf.h>
+ #include <string.h>
  
  ipfstream::ipfstream(const char *name, int mode, int prot)
  {







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