[23556] trunk/dports/net/tsocks/files/patch-dead_pool.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 4 09:25:21 PDT 2007


Revision: 23556
          http://trac.macosforge.org/projects/macports/changeset/23556
Author:   markd at macports.org
Date:     2007-04-04 09:25:21 -0700 (Wed, 04 Apr 2007)

Log Message:
-----------
Closes #11704.  Add patch-dead_pool.c patch that was mistakenly left out of last update.

Added Paths:
-----------
    trunk/dports/net/tsocks/files/patch-dead_pool.c

Added: trunk/dports/net/tsocks/files/patch-dead_pool.c
===================================================================
--- trunk/dports/net/tsocks/files/patch-dead_pool.c	                        (rev 0)
+++ trunk/dports/net/tsocks/files/patch-dead_pool.c	2007-04-04 16:25:21 UTC (rev 23556)
@@ -0,0 +1,20 @@
+--- dead_pool.c.orig	2007-03-28 12:43:06.000000000 +0100
++++ dead_pool.c	2007-03-28 12:43:21.000000000 +0100
+@@ -68,7 +68,7 @@
+     /* Allocate space for the dead_pool structure */
+     newpool = (dead_pool *) mmap(0, sizeof(dead_pool), 
+                    PROT_READ | PROT_WRITE, 
+-                   MAP_SHARED | MAP_ANONYMOUS, -1, 0); 
++                   MAP_SHARED | MAP_ANON, -1, 0); 
+     if(!newpool) {
+         show_msg(MSGERR, "init_pool: unable to mmap deadpool "
+                  "(tried to map %d bytes)\n", sizeof(dead_pool));
+@@ -93,7 +93,7 @@
+     /* Allocate space for the entries */
+     newpool->entries = (pool_ent *) mmap(0, newpool->n_entries * sizeof(pool_ent), 
+                             PROT_READ | PROT_WRITE, 
+-                            MAP_SHARED | MAP_ANONYMOUS, -1, 0); 
++                            MAP_SHARED | MAP_ANON, -1, 0); 
+     if(!newpool->entries) {
+         munmap((void *)newpool, sizeof(dead_pool));
+         show_msg(MSGERR, "init_pool: unable to mmap deadpool entries "

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070404/e6daee4f/attachment.html


More information about the macports-changes mailing list