Subject: missing #include ?
To: None <tech-userlevel@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: tech-userlevel
Date: 12/10/2006 15:50:38
Hi,
I sent this to current-users@ some weeks ago. I probably chose the
wrong list, tech-userlevel seems more appropriate; so here it is:
----- Forwarded message from Jukka Salmi <j+nbsd@2006.salmi.ch> -----
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
Subject: missing #include ?
Date: Tue, 14 Nov 2006 18:08:24 +0100
To: current-users@NetBSD.org
Hi,
while building third-party software on a -current NetBSD/i386 system
I get:
[...]
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?
TIA, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
----- End forwarded message -----
Any comments about this problem? Should any header file which uses
e.g. `u_long' include <sys/types.h>?
Regards, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~