Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32d68c2

Browse files
committed
Merged revisions 70849,70852 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r70849 | jesse.noller | 2009-03-31 13:12:35 -0500 (Tue, 31 Mar 2009) | 1 line Apply patch for netbsd multiprocessing support ........ r70852 | jesse.noller | 2009-03-31 13:27:14 -0500 (Tue, 31 Mar 2009) | 1 line missed the news/acks for netbsd patch ........
1 parent ce9fbd3 commit 32d68c2

5 files changed

Lines changed: 18 additions & 2 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ James A Morrison
492492
Sjoerd Mullender
493493
Sape Mullender
494494
Michael Muller
495+
Piotr Meyer
495496
John Nagle
496497
Takahiro Nakayama
497498
Travers Naran

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Core and Builtins
5353
Library
5454
-------
5555

56+
- Issue #5400: Added patch for multiprocessing on netbsd compilation/support
57+
5658
- Issue #5387: Fixed mmap.move crash by integer overflow.
5759

5860
- Issue #5261: Patch multiprocessing's semaphore.c to support context

Modules/mmapmodule.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,11 @@ mmap_resize_method(mmap_object *self,
520520
#ifdef MREMAP_MAYMOVE
521521
newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE);
522522
#else
523-
newmap = mremap(self->data, self->size, new_size, 0);
523+
#if defined(__NetBSD__)
524+
newmap = mremap(self->data, self->size, self->data, new_size, 0);
525+
#else
526+
newmap = mremap(self->data, self->size, new_size, 0);
527+
#endif /* __NetBSD__ */
524528
#endif
525529
if (newmap == (void *)-1)
526530
{

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ dup_socket(SOCKET handle)
382382
#define SOCKETCLOSE close
383383
#endif
384384

385-
#if defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H)
385+
#if defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H) && !defined(__NetBSD__)
386386
#define USE_BLUETOOTH 1
387387
#if defined(__FreeBSD__)
388388
#define BTPROTO_L2CAP BLUETOOTH_PROTO_L2CAP

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,15 @@ def detect_modules(self):
10231023
)
10241024
libraries = []
10251025

1026+
elif platform.startswith('netbsd'):
1027+
macros = dict( # at least NetBSD 5
1028+
HAVE_SEM_OPEN=1,
1029+
HAVE_SEM_TIMEDWAIT=0,
1030+
HAVE_FD_TRANSFER=1,
1031+
HAVE_BROKEN_SEM_GETVALUE=1
1032+
)
1033+
libraries = []
1034+
10261035
else: # Linux and other unices
10271036
macros = dict(
10281037
HAVE_SEM_OPEN=1,

0 commit comments

Comments
 (0)