Why won't this compile on HPUX?

typedef struct {
   struct timeval t1;
   struct timeval time;
} timer_t;

cc: "timer.h", line 9: error 1584: Inconsistent type declaration: "timer_t".

It compiles fine with gcc...:confused:

Thanks for the help.

timer_t is a long I think. It is used by mktimer(), etc.

That fixed the problem, thank you.

stddef.h declares a lot of these types if you ever get confused.