From c97cbc5ed45e32345cb9cf4eb6b06e3a8e741c44 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Wed, 25 Jan 2017 10:55:54 -0500 Subject: [PATCH] try moving pipe2 from notbsd to unix https://github.com/rust-lang/libc/issues/500 --- src/unix/mod.rs | 1 + src/unix/notbsd/mod.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 427553d13ebf3..1f79941681be3 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -417,6 +417,7 @@ extern { link_name = "pause$UNIX2003")] pub fn pause() -> ::c_int; pub fn pipe(fds: *mut ::c_int) -> ::c_int; + pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int; pub fn posix_memalign(memptr: *mut *mut ::c_void, align: ::size_t, size: ::size_t) -> ::c_int; diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index 9e0916a09eca6..63353f747951a 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -734,7 +734,6 @@ extern { events: *mut epoll_event, maxevents: ::c_int, timeout: ::c_int) -> ::c_int; - pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int; pub fn mount(src: *const ::c_char, target: *const ::c_char, fstype: *const ::c_char,