Thanks Ryan,

This also does not explain why changing nfds_t to xx_t also has no problem.

typedef unsigned long nfds_t; // error
typedef unsigned long xx_t; // works

-Angelo


On May 1, 2009, at 4:26 AM, Ryan Johnson wrote:

After a bit of playing around it appears that dtrace doesn't implicitly expand 'long' to its real type (which is 'long int') and the missing 'int' triggers the error. For example:

typedef unsigned u; // error
typedef unsigned int ui; // works

typedef unsigned long; // error
typedef unsigned long int uli; // works

I have no clue why the problem wouldn't affect header files, though.

Ryan

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to