mirror of
https://github.com/jiangcuo/nix.git
synced 2026-08-09 14:21:07 +00:00
Merge pull request #2082 from inferiorhumanorgans/solaris-no-flock
Don't build flock on Solaris
This commit is contained in:
commit
783e38d760
@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
||||
([#2085](https://github.com/nix-rust/nix/pull/2085))
|
||||
- Added `SO_RTABLE` for OpenBSD and `SO_ACCEPTFILTER` for FreeBSD/NetBSD to `nix::sys::socket::sockopt`.
|
||||
([#2085](https://github.com/nix-rust/nix/pull/2085))
|
||||
- Removed `flock` from `::nix::fcntl` on Solaris. ([#2082](https://github.com/nix-rust/nix/pull/2082))
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@ -559,7 +559,7 @@ pub enum FlockArg {
|
||||
UnlockNonblock,
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "redox"))]
|
||||
#[cfg(not(any(target_os = "redox", target_os = "solaris")))]
|
||||
pub fn flock(fd: RawFd, arg: FlockArg) -> Result<()> {
|
||||
use self::FlockArg::*;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user