Browse Source

Fix conditional compilation of sys/mman.h

Angelo Bulfone 6 years ago
parent
commit
31fc29e70c
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