Re: libgtop-0.99.2 problems



On Thu, Feb 11, 1999 at 03:02:32AM -0800, Michael Hall wrote:
>   I can't compile libgtop (0.99.2) anymore, upgraded from glibc-2.0.7pre6/
> egcs-1.0.3.a to glibc-2.1/egcs-1.1.1. Always worked fine before but now
> I get the following while compiling: ...
>	mountlist.c:52: macro `strstr' used without args

  This is the patch I've been using with glibc-2.1.x.
--- ./sysdeps/common/mountlist.c.OLD	Fri Nov 20 13:59:37 1998
+++ ./sysdeps/common/mountlist.c	Tue Jan 19 19:56:37 1999
@@ -49,7 +49,9 @@
 #define xstrdup(p1)	glibtop_strdup_r (NULL, p1)
 #define xfree(p1)	glibtop_free_r (NULL, p1)
 
+#ifndef strstr
 char *strstr ();
+#endif
 void error ();
 
 #ifdef HAVE_SYS_PARAM_H


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]