1 | --- dead_pool.c.orig 2007-03-28 12:43:06.000000000 +0100 |
---|
2 | +++ dead_pool.c 2007-03-28 12:43:21.000000000 +0100 |
---|
3 | @@ -68,7 +68,7 @@ |
---|
4 | /* Allocate space for the dead_pool structure */ |
---|
5 | newpool = (dead_pool *) mmap(0, sizeof(dead_pool), |
---|
6 | PROT_READ | PROT_WRITE, |
---|
7 | - MAP_SHARED | MAP_ANONYMOUS, -1, 0); |
---|
8 | + MAP_SHARED | MAP_ANON, -1, 0); |
---|
9 | if(!newpool) { |
---|
10 | show_msg(MSGERR, "init_pool: unable to mmap deadpool " |
---|
11 | "(tried to map %d bytes)\n", sizeof(dead_pool)); |
---|
12 | @@ -93,7 +93,7 @@ |
---|
13 | /* Allocate space for the entries */ |
---|
14 | newpool->entries = (pool_ent *) mmap(0, newpool->n_entries * sizeof(pool_ent), |
---|
15 | PROT_READ | PROT_WRITE, |
---|
16 | - MAP_SHARED | MAP_ANONYMOUS, -1, 0); |
---|
17 | + MAP_SHARED | MAP_ANON, -1, 0); |
---|
18 | if(!newpool->entries) { |
---|
19 | munmap((void *)newpool, sizeof(dead_pool)); |
---|
20 | show_msg(MSGERR, "init_pool: unable to mmap deadpool entries " |
---|