Browse Source

Use 4096 as Linux page size for now

Jeremy Soller 6 years ago
parent
commit
51b093b598
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/platform/linux/mod.rs

+ 2 - 1
src/platform/linux/mod.rs

@@ -240,7 +240,8 @@ impl Pal for Sys {
     }
     }
 
 
     fn getpagesize() -> c_int {
     fn getpagesize() -> c_int {
-        e(unsafe { syscall!(GETPAGESIZE) }) as c_int
+        //TODO
+        4096
     }
     }
 
 
     fn getpgid(pid: pid_t) -> pid_t {
     fn getpgid(pid: pid_t) -> pid_t {