On Wed, 2005-06-22 at 17:08, Robert Story wrote:
> On Wed, 22 Jun 2005 16:29:17 +0100 Dave wrote:
> DS>   In file included from if-mib/data_access/interface_linux.c:27:
> DS>   /usr/include/pci/pci.h:29: parse error before "byte"
> DS>   /usr/include/pci/pci.h:30: parse error before "u8"
> DS>      <etc, etc, etc>


> My pci.h has
> 
> /usr/include/pci/pci.h:21:typedef u_int8_t byte;

Mine has:

        #ifdef OS_LINUX
        #include <linux/types.h>

        typedef __u8 byte;
        typedef __u8 u8;
           <etc, etc>

> Maybe in an older version, another include provided those types...

<tap, tap, tap>

Found it!   __u8 and friends are defined in <asm/types.h>
(which also defines 'u8', etc as well - but only for __KERNEL__)

Thanks.  That fixes the compilation.


> The file pci.h isn't actually needed, except for it's typedefs of
> u8, u16 and u32.

Is there any reason for using these type names rather than
'u_int8_t', etc?
I thought those were the "standard" typedefs for fixed-size variables?


>  If you can find a file that exists for 9 and Fedora, I'll be glad to
> update configure/code to use it...

<asm/types.h> is needed for RH9, and should be safe enough under Fedora.
But it doesn't feel quite right, somehow....

Dave



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to