Browse Source

Merge branch 'patch-2' into 'master'

Fix conditional compilation of sys/mman.h

See merge request redox-os/relibc!201
Jeremy Soller 6 years ago
parent
commit
cdbeda1ca0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/header/sys_mman/cbindgen.toml

+ 4 - 0
src/header/sys_mman/cbindgen.toml

@@ -4,5 +4,9 @@ trailer = "#include <bits/sys/mman.h>"
 language = "C"
 style = "Tag"
 
+[defines]
+"target_os=linux" = "__linux__"
+"target_os=redox" = "__redox__"
+
 [enum]
 prefix_with_name = true