File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ pub enum uv_handle_type {
237
237
UV_HANDLE_TYPE_MAX
238
238
}
239
239
240
+ #[ cfg( unix) ]
240
241
#[ deriving( Eq ) ]
241
242
pub enum uv_req_type {
242
243
UV_UNKNOWN_REQ ,
@@ -251,6 +252,31 @@ pub enum uv_req_type {
251
252
UV_REQ_TYPE_MAX
252
253
}
253
254
255
+ // uv_req_type may have additional fields defined by UV_REQ_TYPE_PRIVATE.
256
+ // See UV_REQ_TYPE_PRIVATE at libuv/include/uv-win.h
257
+ #[ cfg( windows) ]
258
+ #[ deriving( Eq ) ]
259
+ pub enum uv_req_type {
260
+ UV_UNKNOWN_REQ ,
261
+ UV_REQ ,
262
+ UV_CONNECT ,
263
+ UV_WRITE ,
264
+ UV_SHUTDOWN ,
265
+ UV_UDP_SEND ,
266
+ UV_FS ,
267
+ UV_WORK ,
268
+ UV_GETADDRINFO ,
269
+ UV_ACCEPT ,
270
+ UV_FS_EVENT_REQ ,
271
+ UV_POLL_REQ ,
272
+ UV_PROCESS_EXIT ,
273
+ UV_READ ,
274
+ UV_UDP_RECV ,
275
+ UV_WAKEUP ,
276
+ UV_SIGNAL_REQ ,
277
+ UV_REQ_TYPE_MAX
278
+ }
279
+
254
280
#[ deriving( Eq ) ]
255
281
pub enum uv_membership {
256
282
UV_LEAVE_GROUP ,
@@ -298,10 +324,8 @@ fn handle_sanity_check() {
298
324
}
299
325
300
326
#[ test]
301
- #[ ignore( cfg( windows) ) ] // FIXME #8817
302
- #[ fixed_stack_segment]
303
- #[ inline( never) ]
304
327
fn request_sanity_check ( ) {
328
+ #[ fixed_stack_segment] ; #[ inline( never) ] ;
305
329
unsafe {
306
330
assert_eq ! ( UV_REQ_TYPE_MAX as uint, rust_uv_req_type_max( ) ) ;
307
331
}
You can’t perform that action at this time.
0 commit comments