This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] to libiberty: make splay-tree.c compile on UNIX
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] to libiberty: make splay-tree.c compile on UNIX
- From: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Date: Thu, 14 Sep 00 20:07:52 CDT
Hi there,
libiberty/splay-tree.c doesn't compile on 4.3BSD UNIX because it uses NULL
without #including <stdio.h> where it's defined. The patch below fixes it. It
is necessary for libiberty/splay-tree.c to compile on UNIX.
--
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-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* splay-tree.c: #include <stdio.h>.
Index: splay-tree.c
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/splay-tree.c,v
retrieving revision 1.14
diff -c -r1.14 splay-tree.c
*** splay-tree.c 2000/09/10 21:28:21 1.14
--- splay-tree.c 2000/09/15 01:05:05
***************
*** 32,37 ****
--- 32,39 ----
#include <stdlib.h>
#endif
+ #include <stdio.h>
+
#include "libiberty.h"
#include "splay-tree.h"