[ python-Bugs-1470300 ] QNX4.25 port

SourceForge.net noreply at sourceforge.net
Fri Apr 14 12:04:04 CEST 2006


Bugs item #1470300, was opened at 2006-04-14 18:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1470300&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: kbob_ru (kbob_ru)
Assigned to: Nobody/Anonymous (nobody)
Summary: QNX4.25 port

Initial Comment:
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
      {


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1470300&group_id=5470


More information about the Python-bugs-list mailing list