[ python-Bugs-1470300 ] QNX4.25 port

SourceForge.net noreply at sourceforge.net
Fri Apr 14 17:08:14 CEST 2006


Bugs item #1470300, was opened at 2006-04-14 12:04
Message generated for change (Comment added) made by loewis
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: Closed
>Resolution: Accepted
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
      {


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

>Comment By: Martin v. Löwis (loewis)
Date: 2006-04-14 17:08

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as r45391.

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

Comment By: kbob_ru (kbob_ru)
Date: 2006-04-14 12:06

Message:
Logged In: YES 
user_id=1347065

patch in attachment

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

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