Ticket #46732: patch-pxz.c.diff

File patch-pxz.c.diff, 406 bytes (added by weidmannstefano@…, 10 years ago)

The required patch for OSX

  • pxz-4.999.9beta/pxz.c

    old new  
    259259                        exit(EXIT_FAILURE);
    260260                }
    261261               
    262                 m = mmap(NULL, s.st_size, PROT_READ, MAP_SHARED|MAP_POPULATE, fileno(f), 0);
     262                m = mmap(NULL, s.st_size, PROT_READ, MAP_SHARED, fileno(f), 0);
    263263                if (m == MAP_FAILED) {
    264264                        perror("mmap failed");
    265265                        exit(EXIT_FAILURE);