Changeset 3574

Show
Ignore:
Timestamp:
09/12/07 14:59:14 (1 year ago)
Author:
tg
Message:

use MAP_PRIVATE, so that this works on Linux as well
10x austriancoder@

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/common-nfo/tools/nfotiser/parser.c

    r3487 r3574  
    116116        len = sb.st_size; 
    117117        D(2, "trying to mmap %zu bytes...", len); 
    118         if ((cp = mmap(NULL, len, PROT_READ, MAP_FILE, fd, 0)) == MAP_FAILED) 
     118        if ((cp = mmap(NULL, len, PROT_READ, MAP_FILE | MAP_PRIVATE, 
     119            fd, 0)) == MAP_FAILED) 
    119120                err(255, "cannot mmap %zu bytes", len); 
    120121        D(2, "ok\n");