Subject: Re: missing #include ?
To: None <>
From: Christian Biere <>
List: current-users
Date: 11/14/2006 18:18:37
Jukka Salmi wrote:
> [...]
> In file included from /usr/include/net/if.h:86,
> [...]
> /usr/include/net/pfil.h:79: error: expected specifier-qualifier-list before 'u_long'
> [...]
> While changing the third-party software to include sys/types.h fixes
> the problem, I think it's NetBSD's fault: net/pfil.h should know about
> `u_long' by including sys/types.h, shouldn't it?

I'd just avoid such unnecessary dependencies by using standard C types whenever
possible in public header files. s/u_long/unsigned long/ isn't killing anyone.