@@ -42,22 +42,27 @@ use libc::{c_int, c_void, size_t};
4242extern { }
4343
4444// Note that the symbols here are prefixed by default on OSX (we don't
45- // explicitly request it), and on Android we explicitly request it as
46- // unprefixing cause segfaults (mismatches in allocators).
45+ // explicitly request it), and on Android and DragonFly we explicitly request
46+ // it as unprefixing cause segfaults (mismatches in allocators).
4747extern {
48- #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ) ,
48+ #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ,
49+ target_os = "dragonfly" ) ,
4950 link_name = "je_mallocx" ) ]
5051 fn mallocx ( size : size_t , flags : c_int ) -> * mut c_void ;
51- #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ) ,
52+ #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ,
53+ target_os = "dragonfly" ) ,
5254 link_name = "je_rallocx" ) ]
5355 fn rallocx ( ptr : * mut c_void , size : size_t , flags : c_int ) -> * mut c_void ;
54- #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ) ,
56+ #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ,
57+ target_os = "dragonfly" ) ,
5558 link_name = "je_xallocx" ) ]
5659 fn xallocx ( ptr : * mut c_void , size : size_t , extra : size_t , flags : c_int ) -> size_t ;
57- #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ) ,
60+ #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ,
61+ target_os = "dragonfly" ) ,
5862 link_name = "je_sdallocx" ) ]
5963 fn sdallocx ( ptr : * mut c_void , size : size_t , flags : c_int ) ;
60- #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ) ,
64+ #[ cfg_attr( any( target_os = "macos" , target_os = "android" , target_os = "ios" ,
65+ target_os = "dragonfly" ) ,
6166 link_name = "je_nallocx" ) ]
6267 fn nallocx ( size : size_t , flags : c_int ) -> size_t ;
6368}
0 commit comments