HEADS UP: use proper includes (was: [cvs] bogofilter/src bogoutil.c,1.99,1.100)
    Matthias Andree 
    matthias.andree at gmx.de
       
    Thu Feb  5 03:56:22 CET 2004
    
    
  
On Wed, 04 Feb 2004, David Relson wrote:
> On Thu, 5 Feb 2004 03:23:39 +0100
> Matthias Andree wrote:
> 
> > On Wed, 04 Feb 2004, relson at users.sourceforge.net wrote:
> > 
> > > Update of /cvsroot/bogofilter/bogofilter/src
> > > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20908
> > > 
> > > Modified Files:
> > > 	bogoutil.c 
> > > Log Message:
> > > Provide prototype for getopt().
> > 
> > > +#include <getopt.h>
> > 
> > Not that again. :-/
> 
> I admit I was surprised to do a compile and have a complaint about
> getopt().  "grep getopt.h *.c *.h" indicates we use the file in 5
> places.  If we can find the right approach, maybe we can fix this once
> and for all.  Ideas???
Turns out our local libgnugetopt getopt.h doesn't interface well with
common GNU libc 2.3 versions. I've added a include path split hack that
helps on my system.
The trick is -I- on the GCC command line, -Ipath components before -I- are
applied only for #include "..." but not for #include <...>.
-Ipath components after -I- will apply to either of the both forms.
-- 
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
    
    
More information about the bogofilter-dev
mailing list