[Iftop-users] Build Problems with FreeBsd 4.10-RELEASE

Paul Warren pdw at ex-parrot.com
Mon, 9 Aug 2004 21:41:19 +0100


On Mon, Aug 09, 2004 at 01:40:20PM -0400, Mike.Mallory@CipherTrust.com wrote:
> Attempting to do a make on FreeBSD 4.10 and get the following errors
> 
>  
> 
>                  from cfgfile.c:14:
> 
> /usr/include/netinet/in.h:235: syntax error before `in_addr_t'
> 
> /usr/include/netinet/in.h:287: syntax error before `u_char'
> 
> In file included from /usr/include/netinet/in.h:487,

Try this patch:

*** options.h.old       2004-08-09 20:40:22.000000000 +0100
--- options.h   2004-08-09 20:40:41.000000000 +0100
***************
*** 6,11 ****
--- 6,12 ----
  #ifndef __OPTIONS_H_ /* include guard */
  #define __OPTIONS_H_

+ #include <sys/types.h>
  #include <sys/socket.h>
  #include <netinet/in.h>
  #include <arpa/inet.h>

Paul