Use "" in the native_name as an indication that no extra options have to
be passed to the "linker". Use that for libc.
This commit is contained in:
parent
663aa76635
commit
ecc080ed0b
10 changed files with 16 additions and 19 deletions
|
|
@ -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 = "c" {
|
||||
native "cdecl" mod libc = "" {
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import str::sbuf;
|
||||
import vec::vbuf;
|
||||
|
||||
native "cdecl" mod libc = "c" {
|
||||
native "cdecl" mod libc = "" {
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import str::sbuf;
|
||||
import vec::vbuf;
|
||||
|
||||
native "cdecl" mod libc = "c" {
|
||||
native "cdecl" mod libc = "" {
|
||||
fn open(sbuf s, int flags, uint mode) -> int = "_open";
|
||||
fn read(int fd, vbuf buf, uint count) -> int = "_read";
|
||||
fn write(int fd, vbuf buf, uint count) -> int = "_write";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue