#undef __SPARCSOLARIS__
#define __X86RHLINUX__
#undef __FREEBSD__

#ifdef __SPARCSOLARIS__
  #include <sys/time.h>
  #include "/usr/ucbinclude/sys/rusage.h"
#endif

#ifdef __X86RHLINUX__
  #include <sys/time.h>
  #include <sys/resource.h>
  #include <unistd.h>
#endif

#ifdef __FREEBSD__
  #include <sys/types.h>
  #include <sys/time.h>
  #include <sys/resource.h>
#endif

extern int resource_start( struct timeval *tp_start, struct rusage *r_start );
extern int resource_stop( struct timeval *tp_stop, struct rusage *r_stop ); 
extern void resource_display_delta( struct timeval tp_start, struct rusage r_start, 
                                    struct timeval tp_stop, struct rusage r_stop, char label[] ); 
extern double resource_cputime( struct timeval tp_start, struct rusage r_start, struct timeval tp_stop, struct rusage r_stop );
