Record and link with used native libraries.

This commit is contained in:
Rafael Ávila de Espíndola
2011-06-27 15:24:44 -04:00
parent 8fc51dfc65
commit ac081c30be
11 changed files with 76 additions and 31 deletions

View File

@@ -5,7 +5,7 @@ import vec::vbuf;
// FIXME Somehow merge stuff duplicated here and macosx_os.rs. Made difficult
// by https://github.com/graydon/rust/issues#issue/268
native "cdecl" mod libc {
native "cdecl" mod libc = "c" {
fn open(sbuf s, int flags, uint mode) -> int;
fn read(int fd, vbuf buf, uint count) -> int;
fn write(int fd, vbuf buf, uint count) -> int;