Skip to content

unconditionally include sys/mman.h in os-compatibility.c

James Hilliard requested to merge jameshilliard/weston:memfd into master

Fixes:

../shared/os-compatibility.c:273:25: error: ‘PROT_READ’ undeclared (first use in this function); did you mean ‘LOCK_READ’?
  map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, file->fd, 0);
                         ^~~~~~~~~
                         LOCK_READ

Merge request reports

Loading