From a625c6954452ed2d35b2c3ddd50a0e062f62b069 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Apr 2019 13:04:27 -0700 Subject: [PATCH] Make FD_ISSET's argument a pointer to const, to match the libc declaration. --- src/wasi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasi.rs b/src/wasi.rs index 3412e435..ee368adf 100644 --- a/src/wasi.rs +++ b/src/wasi.rs @@ -1053,7 +1053,7 @@ extern { pub fn uselocale(loc: ::locale_t) -> ::locale_t; pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> (); - pub fn FD_ISSET(fd: ::c_int, set: *mut fd_set) -> bool; + pub fn FD_ISSET(fd: ::c_int, set: *const fd_set) -> bool; pub fn FD_SET(fd: ::c_int, set: *mut fd_set) -> (); pub fn FD_ZERO(set: *mut fd_set) -> ();