Explorar o código

Fix conditional compilation of sys/mman.h

Angelo Bulfone %!s(int64=6) %!d(string=hai) anos
pai
achega
31fc29e70c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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