From 31fc29e70cc9a59f4947493e778e11f69150fe71 Mon Sep 17 00:00:00 2001 From: Angelo Bulfone Date: Sun, 3 Mar 2019 21:14:45 +0000 Subject: [PATCH] Fix conditional compilation of sys/mman.h --- src/header/sys_mman/cbindgen.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/header/sys_mman/cbindgen.toml b/src/header/sys_mman/cbindgen.toml index 1fecef571c..2b34e52f65 100644 --- a/src/header/sys_mman/cbindgen.toml +++ b/src/header/sys_mman/cbindgen.toml @@ -4,5 +4,9 @@ trailer = "#include " language = "C" style = "Tag" +[defines] +"target_os=linux" = "__linux__" +"target_os=redox" = "__redox__" + [enum] prefix_with_name = true