Forráskód Böngészése

Fix conditional compilation of sys/mman.h

Angelo Bulfone 6 éve
szülő
commit
31fc29e70c
1 módosított fájl, 4 hozzáadás és 0 törlés
  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