In QNX4.25 there is no <sys/resource.h> and rusage.
I used next patch to compile _hotshot.c module in
QNX4.25 wuth Watcom10.6 compiler.
*** /usr/local/src/Python-2.4.3.orig/Modules/_hotshot.c
Mon Mar 20 16:37:16 2006
--- /usr/local/src/Python-2.4.3/Modules/_hotshot.c
Sat Apr 15 17:16:47 2006
***************
*** 26,32 ****
#ifndef HAVE_GETTIMEOFDAY
#error "This module requires gettimeofday() on non-
Windows platforms!"
#endif
! #if (defined(PYOS_OS2) && defined(PYCC_GCC))
#include <sys/time.h>
#else
#include <sys/resource.h>
--- 26,32 ----
#ifndef HAVE_GETTIMEOFDAY
#error "This module requires gettimeofday() on non-
Windows platforms!"
#endif
! #if (defined(PYOS_OS2) && defined(PYCC_GCC)) ||
defined(__QNX__)
#include <sys/time.h>
#else
#include <sys/resource.h>
***************
*** 917,923 ****
#endif
}
#if defined(MS_WINDOWS) || defined(PYOS_OS2) || \
! defined(__VMS)
rusage_diff = -1;
#else
{
--- 917,923 ----
#endif
}
#if defined(MS_WINDOWS) || defined(PYOS_OS2) || \
! defined(__VMS) || defined (__QNX__)
rusage_diff = -1;
#else
{
|