summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-12-19 15:23:50 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-12-19 15:23:50 +0000
commitb68db41543d16d862e07ddbd143f43b92533d60b (patch)
treeab1f601bc9e67bc31ef833dcebc973b9ee899b67 /src/unistd.rs
parent291d618322a360e2b3ac99ca7c1fde19ba6b4b2c (diff)
parent709cbdf12cacb6ecf42cca9000d1d46380b6ba62 (diff)
downloadnix-b68db41543d16d862e07ddbd143f43b92533d60b.zip
Merge #799
799: Fix nix on Dragonfly r=Susurrus a=mneumann This commit replaces pull request https://github.com/nix-rust/nix/pull/684. It fixes building `nix` on DragonFly. All tests pass. This requires most recent libc to build: https://github.com/rust-lang/libc/pull/851.
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index f35eab9d..7a1c56c7 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -630,8 +630,11 @@ pub fn execvp(filename: &CString, args: &[CString]) -> Result<Void> {
///
/// This function is similar to `execve`, except that the program to be executed
/// is referenced as a file descriptor instead of a path.
-#[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd",
- target_os = "netbsd", target_os = "openbsd", target_os = "linux"))]
+#[cfg(any(target_os = "android",
+ target_os = "freebsd",
+ target_os = "linux",
+ target_os = "netbsd",
+ target_os = "openbsd"))]
#[inline]
pub fn fexecve(fd: RawFd, args: &[CString], env: &[CString]) -> Result<Void> {
let args_p = to_exec_array(args);