homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: QNX4.25 port
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: kbob_ru, loewis
Priority: normal Keywords:

Created on 2006年04月14日 10:04 by kbob_ru, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
_hotshot.diff kbob_ru, 2006年04月14日 10:06 patch for _hotshot.c
Messages (3)
msg28225 - (view) Author: kbob_ru (kbob_ru) Date: 2006年04月14日 10:04
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
 {
msg28226 - (view) Author: kbob_ru (kbob_ru) Date: 2006年04月14日 10:06
Logged In: YES 
user_id=1347065
patch in attachment
msg28227 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006年04月14日 15:08
Logged In: YES 
user_id=21627
Thanks for the patch. Committed as r45391.
History
Date User Action Args
2022年04月11日 14:56:16adminsetgithub: 43201
2006年04月14日 10:04:03kbob_rucreate

AltStyle によって変換されたページ (->オリジナル) /