1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/// arm-features.h
pub static ARM_FEATURES_H: &str = include_str!("arm-features.h");
// Fix glibc undefined symbol fcntl64 error
// fcntl.map
pub static FCNTL_MAP: &str = r#"
GLIBC_2.2.5 {
fcntl;
};
"#;
// fnctl.h shim
pub static FCNTL_H: &str = r#"
#ifdef __ASSEMBLER__
.symver fcntl64, fcntl@GLIBC_2.2.5
#else
__asm__(".symver fcntl64, fcntl@GLIBC_2.2.5");
#endif
"#;