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

Re: location of system headers



> From: Pieter Grimmerink <mailinglists@xxxxxxx.nl>
> Date: Mon, 15 Apr 2002 22:39:40 +0200

> Now I get errors about 'uint' and 'inet_aton'.

They aren't defined in glibc when the option -ansi is used.  The
following patch seems to work.  I'd recommend you use C though;
it seems it's a one-line change to your particular program.

--- Rules.elinux.orig	Thu Dec  6 19:44:38 2001
+++ Rules.elinux	Tue Apr 16 12:00:30 2002
@@ -298,7 +298,7 @@ CFLAGS   += -DELINUX
 endif
 
 # Can't use -pedantic due to use of long long in standard includes. :(
-CXXFLAGS  = $(CFLAGS) -Wno-ctor-dtor-privacy -ansi -pipe
+CXXFLAGS  = $(CFLAGS) -Wno-ctor-dtor-privacy -pipe
 
 # Define LDFLAGS to something sensible.
 LDFLAGS   =

brgds, H-P