diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-build-on-non-x86.patch')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-build-on-non-x86.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-build-on-non-x86.patch b/dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-build-on-non-x86.patch deleted file mode 100644 index 66d1ddd..0000000 --- a/dynamic-layers/selinux/android-tools/android-tools/core-debian/fix-build-on-non-x86.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | Description: non-x86 arches do not have PAGE_SIZE | ||
2 | Forwarded: not-needed | ||
3 | --- a/base/cmsg.cpp | ||
4 | +++ b/base/cmsg.cpp | ||
5 | @@ -33,7 +33,8 @@ | ||
6 | const std::vector<int>& fds) { | ||
7 | size_t cmsg_space = CMSG_SPACE(sizeof(int) * fds.size()); | ||
8 | size_t cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); | ||
9 | - if (cmsg_space >= PAGE_SIZE) { | ||
10 | + size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); | ||
11 | + if (cmsg_space >= pagesize) { | ||
12 | errno = ENOMEM; | ||
13 | return -1; | ||
14 | } | ||
15 | @@ -75,7 +76,8 @@ | ||
16 | fds->clear(); | ||
17 | |||
18 | size_t cmsg_space = CMSG_SPACE(sizeof(int) * max_fds); | ||
19 | - if (cmsg_space >= PAGE_SIZE) { | ||
20 | + size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); | ||
21 | + if (cmsg_space >= pagesize) { | ||
22 | errno = ENOMEM; | ||
23 | return -1; | ||
24 | } | ||