Description: non-x86 arches do not have PAGE_SIZE Forwarded: not-needed --- a/base/cmsg.cpp +++ b/base/cmsg.cpp @@ -33,7 +33,8 @@ const std::vector& fds) { size_t cmsg_space = CMSG_SPACE(sizeof(int) * fds.size()); size_t cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); - if (cmsg_space >= PAGE_SIZE) { + size_t pagesize = static_cast(sysconf(_SC_PAGE_SIZE)); + if (cmsg_space >= pagesize) { errno = ENOMEM; return -1; } @@ -75,7 +76,8 @@ fds->clear(); size_t cmsg_space = CMSG_SPACE(sizeof(int) * max_fds); - if (cmsg_space >= PAGE_SIZE) { + size_t pagesize = static_cast(sysconf(_SC_PAGE_SIZE)); + if (cmsg_space >= pagesize) { errno = ENOMEM; return -1; }