Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37809971
en ru br
ALT Linux repositórios
S:10.0.0-alt5.r36

Group :: Development/Tools
RPM: android-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: fix-build-on-non-x86.patch
Download


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<int>& 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<size_t>(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<size_t>(sysconf(_SC_PAGE_SIZE));
+  if (cmsg_space >= pagesize) {
     errno = ENOMEM;
     return -1;
   }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009