@@ -42,22 +42,27 @@ use libc::{c_int, c_void, size_t};
42
42
extern { }
43
43
44
44
// 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).
47
47
extern {
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" ) ,
49
50
link_name = "je_mallocx" ) ]
50
51
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" ) ,
52
54
link_name = "je_rallocx" ) ]
53
55
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" ) ,
55
58
link_name = "je_xallocx" ) ]
56
59
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" ) ,
58
62
link_name = "je_sdallocx" ) ]
59
63
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" ) ,
61
66
link_name = "je_nallocx" ) ]
62
67
fn nallocx ( size : size_t , flags : c_int ) -> size_t ;
63
68
}
0 commit comments