Re: gtop 0.99.2



"Mark R. Bowyer" <Moredhel@earthling.net> writes:

> >From: Philippe.Defert@cern.ch
> 
> >On sparc-sun-solaris2.5.1, sparc-sun-solaris2.6, hppa1.1-hp-hpux10.20
> >and powerpc-ibm-aix4.3.2.0, the compilation stopped for main.c with:
> 
> > :*:session.h:10: getopt.h: No such file or directory *:gmake: ***
> > :[main.o] Error 1
> >  I deleted the include directive with getopt.h, and compilation went
> >on.
> 
> 
> This is a general thing I keep meaning to mention.  In Solaris (and
> probably many other Unixen) getopt() is declared in stdlib.h, *not* in
> a seperate, specialised header of its own.  So I either delete this
> line, or change it to #include <stdlib.h> if it isn't already in the
> list of #includes, to compile on Solaris.

Already fixed in CVS - just delete the #include <getopt.h>, it was a
left-over from former times and is no longer needed.

Martin

-- 
-----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier
   martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------



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