timeval from <sys/resource.h> not defined

couzteau

Registered
i'm trying to compile a unix program that uses the type timeval from the sys/resource library.

the libraries that are supplied with MacOSX (10.1) seem to be missing that type. my compiler says the type is incomplete. when i grep for timeval i find a declaration in unistd.h (which is included in sys/resource.h) but it doesn't seem to be defined anywhere.

any ideas? i really would like to avoid removing the code that requires timeval.

thanx

couzteau
 
from /usr/include/sys/time.h

struct timeval {
int32_t tv_sec; /* seconds */
int32_t tv_usec; /* and microseconds */
};
 
yupp, that does the job. thanx again.

here i'm on my way to check out the next error.


couzteau

ps now yacc doesn't find it's files because project builder messed its paths.
 
Back
Top