Skip to content

Commit 72c8a30

Browse files
committed
malloc_zone darwin build fix.
closes #2484
1 parent 90ebf43 commit 72c8a30

File tree

1 file changed

+13
-13
lines changed
  • src/unix/bsd/apple/b64/x86_64

1 file changed

+13
-13
lines changed

src/unix/bsd/apple/b64/x86_64/mod.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,62 +110,62 @@ s! {
110110
pub struct malloc_zone_t {
111111
_reserved1: *mut ::c_void,
112112
_reserved2: *mut ::c_void,
113-
pub size: Option<unsafe extern "C" fn(
113+
pub size: ::Option<unsafe extern "C" fn(
114114
zone: *mut malloc_zone_t,
115115
ptr: *const ::c_void,
116116
) -> ::size_t>,
117-
pub malloc: Option<unsafe extern "C" fn(
117+
pub malloc: ::Option<unsafe extern "C" fn(
118118
zone: *mut malloc_zone_t,
119119
size: ::size_t,
120120
) -> *mut ::c_void>,
121-
pub calloc: Option<unsafe extern "C" fn(
121+
pub calloc: ::Option<unsafe extern "C" fn(
122122
zone: *mut malloc_zone_t,
123123
num_items: ::size_t,
124124
size: ::size_t,
125125
) -> *mut ::c_void>,
126-
pub valloc: Option<unsafe extern "C" fn(
126+
pub valloc: ::Option<unsafe extern "C" fn(
127127
zone: *mut malloc_zone_t,
128128
size: ::size_t
129129
) -> *mut ::c_void>,
130-
pub free: Option<unsafe extern "C" fn(
130+
pub free: ::Option<unsafe extern "C" fn(
131131
zone: *mut malloc_zone_t,
132132
ptr: *mut ::c_void
133133
)>,
134-
pub realloc: Option<unsafe extern "C" fn(
134+
pub realloc: ::Option<unsafe extern "C" fn(
135135
zone: *mut malloc_zone_t,
136136
ptr: *mut ::c_void,
137137
size: ::size_t,
138138
) -> *mut ::c_void>,
139-
pub destroy: Option<unsafe extern "C" fn(zone: *mut malloc_zone_t)>,
139+
pub destroy: ::Option<unsafe extern "C" fn(zone: *mut malloc_zone_t)>,
140140
pub zone_name: *const ::c_char,
141-
pub batch_malloc: Option<unsafe extern "C" fn(
141+
pub batch_malloc: ::Option<unsafe extern "C" fn(
142142
zone: *mut malloc_zone_t,
143143
size: ::size_t,
144144
results: *mut *mut ::c_void,
145145
num_requested: ::c_uint,
146146
) -> ::c_uint>,
147-
pub batch_free: Option<unsafe extern "C" fn(
147+
pub batch_free: ::Option<unsafe extern "C" fn(
148148
zone: *mut malloc_zone_t,
149149
to_be_freed: *mut *mut ::c_void,
150150
num_to_be_freed: ::c_uint,
151151
)>,
152152
pub introspect: *mut malloc_introspection_t,
153153
pub version: ::c_uint,
154-
pub memalign: Option<unsafe extern "C" fn(
154+
pub memalign: ::Option<unsafe extern "C" fn(
155155
zone: *mut malloc_zone_t,
156156
alignment: ::size_t,
157157
size: ::size_t,
158158
) -> *mut ::c_void>,
159-
pub free_definite_size: Option<unsafe extern "C" fn(
159+
pub free_definite_size: ::Option<unsafe extern "C" fn(
160160
zone: *mut malloc_zone_t,
161161
ptr: *mut ::c_void,
162162
size: ::size_t
163163
)>,
164-
pub pressure_relief: Option<unsafe extern "C" fn(
164+
pub pressure_relief: ::Option<unsafe extern "C" fn(
165165
zone: *mut malloc_zone_t,
166166
goal: ::size_t,
167167
) -> ::size_t>,
168-
pub claimed_address: Option<unsafe extern "C" fn(
168+
pub claimed_address: ::Option<unsafe extern "C" fn(
169169
zone: *mut malloc_zone_t,
170170
ptr: *mut ::c_void,
171171
) -> ::boolean_t>,

0 commit comments

Comments
 (0)