diff options
| author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-06-28 08:21:13 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2011-06-28 08:21:13 -0400 |
| commit | ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca (patch) | |
| tree | 47a496b72d9052e829b476028d2a678d7eda6908 /src/lib | |
| parent | 663aa7663533b6b1cbeb2229c95b4bbde1a5d18e (diff) | |
| download | rust-ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca.tar.gz rust-ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca.zip | |
Use "" in the native_name as an indication that no extra options have to
be passed to the "linker". Use that for libc.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/linux_os.rs | 2 | ||||
| -rw-r--r-- | src/lib/macos_os.rs | 2 | ||||
| -rw-r--r-- | src/lib/win32_os.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/linux_os.rs b/src/lib/linux_os.rs index fbd5c138bdc..92c2d74e496 100644 --- a/src/lib/linux_os.rs +++ b/src/lib/linux_os.rs @@ -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; diff --git a/src/lib/macos_os.rs b/src/lib/macos_os.rs index b20ea8e5019..6ba5e24ac98 100644 --- a/src/lib/macos_os.rs +++ b/src/lib/macos_os.rs @@ -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; diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs index f8b38b30538..fdd4eea3afc 100644 --- a/src/lib/win32_os.rs +++ b/src/lib/win32_os.rs @@ -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"; |
