1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #10 from KokaKiwi/fix-build

Fix build.
This commit is contained in:
Jordi Boggiano 2013-11-28 01:20:15 -08:00
commit 2a0b874f07
4 changed files with 6 additions and 7 deletions

View file

@ -22,11 +22,11 @@ endef
# Test exe built rules
define TEST_BUILD
test_$(1): tmp/$(1)_test build/$(1)
test_$(1): tmp/$(1)_test build build/$(1)
$(call command,tmp/$(1)_test)
tmp/$(1)_test: $(1)/test.rs
$(RUSTC) $(RUSTCFLAGS) -o tmp/$(1)_test $(1)/test.rs
$(call command,$(RUSTC) $(RUSTCFLAGS) --test -o tmp/$(1)_test $(1)/test.rs)
endef
# Main rules

View file

@ -1,5 +1,5 @@
#[link(name="cat", vers="1.0.0", author="Seldaek")];
#[feature(managed_boxes)]
#[feature(managed_boxes)];
/*
* This file is part of the uutils coreutils package.

6
env/env.rs vendored
View file

@ -75,7 +75,7 @@ fn main() {
if wait_cmd {
// we still accept NAME=VAL here but not other options
let mut sp = opt.splitn_iter('=', 1);
let mut sp = opt.splitn('=', 1);
let name = sp.next();
let value = sp.next();
@ -119,7 +119,7 @@ fn main() {
continue;
}
let mut chars = opt.iter();
let mut chars = opt.chars();
chars.next();
for c in chars {
@ -146,7 +146,7 @@ fn main() {
}
} else {
// is it a NAME=VALUE like opt ?
let mut sp = opt.splitn_iter('=', 1);
let mut sp = opt.splitn('=', 1);
let name = sp.next();
let value = sp.next();

View file

@ -28,7 +28,6 @@ extern {
pub fn getpwuid(uid: libc::c_int) -> *c_passwd;
}
#[fixed_stack_segment]
unsafe fn getusername() -> ~str {
let passwd: *c_passwd = getpwuid(geteuid());