aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/linux-headers/asm/mman_arm.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
commit0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch)
tree4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/linux-headers/asm/mman_arm.h
parentd1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff)
downloadydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/linux-headers/asm/mman_arm.h')
-rw-r--r--contrib/libs/linux-headers/asm/mman_arm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/libs/linux-headers/asm/mman_arm.h b/contrib/libs/linux-headers/asm/mman_arm.h
new file mode 100644
index 0000000000..41f99c573b
--- /dev/null
+++ b/contrib/libs/linux-headers/asm/mman_arm.h
@@ -0,0 +1,4 @@
+#include <asm-generic/mman.h>
+
+#define arch_mmap_check(addr, len, flags) \
+ (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)