Skip to content

Commit bb7750b

Browse files
committed
stdlib: Fix some busted macos libc decls
1 parent d0a2f00 commit bb7750b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/macos_os.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ native mod libc {
4040
type dirent;
4141
fn readdir(d: dir) -> dirent;
4242
fn getenv(n: str::sbuf) -> str::sbuf;
43-
fn setenv(n: str::sbuf, v: str::sbuf, overwrite: int) -> int;
44-
fn unsetenv(n: str::sbuf) -> int;
45-
fn pipe(buf: *mutable int) -> int;
46-
fn waitpid(pid: int, &status: int, options: int) -> int;
47-
fn mkdir(s: str::sbuf, mode: int) -> int;
48-
fn rmdir(s: str::sbuf) -> int;
43+
fn setenv(n: str::sbuf, v: str::sbuf, overwrite: c_int) -> c_int;
44+
fn unsetenv(n: str::sbuf) -> c_int;
45+
fn pipe(buf: *mutable c_int) -> c_int;
46+
fn waitpid(pid: int, &status: c_int, options: c_int) -> c_int;
47+
fn mkdir(s: str::sbuf, mode: c_int) -> c_int;
48+
fn rmdir(s: str::sbuf) -> c_int;
4949
}
5050

5151
mod libc_constants {

0 commit comments

Comments
 (0)