Skip to content

Commit 3190d46

Browse files
committed
Auto merge of #3100 - cppcoffee:master, r=JohnTitor
uclibc/mips: add missing MAP_HUGETLB constant Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com> This add the MAP_HUGETLB constant on Linux and uclibc. It is defined as part of the uclibc in mman.h: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/libc/sysdeps/linux/mips/bits/mman.h#n35
2 parents 34096f8 + b83e316 commit 3190d46

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/linux/uclibc/mips

1 file changed

+2
-0
lines changed

src/unix/linux_like/linux/uclibc/mips/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ pub const ICANON: ::tcflag_t = 0x00000002;
263263
pub const PENDIN: ::tcflag_t = 0x00004000;
264264
pub const NOFLSH: ::tcflag_t = 0x00000080;
265265

266+
pub const MAP_HUGETLB: ::c_int = 0x80000;
267+
266268
pub const B0: ::speed_t = 0o000000;
267269
pub const B50: ::speed_t = 0o000001;
268270
pub const B75: ::speed_t = 0o000002;

0 commit comments

Comments
 (0)