From ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca Mon Sep 17 00:00:00 2001 From: Rafael Ávila de Espíndola Date: Tue, 28 Jun 2011 08:21:13 -0400 Subject: Use "" in the native_name as an indication that no extra options have to be passed to the "linker". Use that for libc. --- src/lib/linux_os.rs | 2 +- src/lib/macos_os.rs | 2 +- src/lib/win32_os.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') 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"; -- cgit 1.4.1-3-g733a5