Issue1470300
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:16 | admin | set | github: 43201 |
| 2006年04月14日 10:04:03 | kbob_ru | create |