diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-05-23 15:06:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-05-23 15:06:50 (GMT) |
commit | 8c255e4173cfc86ff7015b8f75dccf0d41b24003 (patch) | |
tree | 16f42f4f82367420f4c70a6faf7e97a4c43579b1 /Modules | |
parent | badd7da622460b8dd8405545f59da1e2c0ef79e6 (diff) | |
download | cpython-8c255e4173cfc86ff7015b8f75dccf0d41b24003.zip cpython-8c255e4173cfc86ff7015b8f75dccf0d41b24003.tar.gz cpython-8c255e4173cfc86ff7015b8f75dccf0d41b24003.tar.bz2 |
Patch #1722225: Support QNX 6.
Diffstat (limited to 'Modules')
-rwxr-xr-x | Modules/_ctypes/libffi/configure | 3 | ||||
-rw-r--r-- | Modules/_ctypes/libffi/configure.ac | 3 | ||||
-rw-r--r-- | Modules/_ctypes/malloc_closure.c | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/Modules/_ctypes/libffi/configure b/Modules/_ctypes/libffi/configure index ee8f636..aaa7914 100755 --- a/Modules/_ctypes/libffi/configure +++ b/Modules/_ctypes/libffi/configure @@ -20406,6 +20406,9 @@ case "$host" in i?86-*-solaris2.1[0-9]*) TARGET=X86_64; TARGETDIR=x86 ;; + i*86-*-nto-qnx*) + TARGET=X86; TARGETDIR=x86 + ;; i?86-*-*) TARGET=X86; TARGETDIR=x86 ;; diff --git a/Modules/_ctypes/libffi/configure.ac b/Modules/_ctypes/libffi/configure.ac index 0a85146..57c161b 100644 --- a/Modules/_ctypes/libffi/configure.ac +++ b/Modules/_ctypes/libffi/configure.ac @@ -86,6 +86,9 @@ case "$host" in i?86-*-solaris2.1[[0-9]]*) TARGET=X86_64; TARGETDIR=x86 ;; + i*86-*-nto-qnx*) + TARGET=X86; TARGETDIR=x86 + ;; i?86-*-*) TARGET=X86; TARGETDIR=x86 ;; diff --git a/Modules/_ctypes/malloc_closure.c b/Modules/_ctypes/malloc_closure.c index 4cd5dd6..73fc0d9 100644 --- a/Modules/_ctypes/malloc_closure.c +++ b/Modules/_ctypes/malloc_closure.c @@ -48,7 +48,11 @@ static void more_core(void) } #else if (!_pagesize) { +#ifdef _SC_PAGESIZE + _pagesize = sysconf(_SC_PAGESIZE); +#else _pagesize = getpagesize(); +#endif } #endif |