full diff: https://github.com/fsnotify/fsnotify/compare/v1.4.9...v1.5.1 Relevant changes: - Fix unsafe pointer conversion - Drop support/testing for Go 1.11 and earlier - Update x/sys to latest - add //go:build lines - add go 1.17 to test matrix Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
13 lines
373 B
Go
13 lines
373 B
Go
// Copyright 2013 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build freebsd || openbsd || netbsd || dragonfly
|
|
// +build freebsd openbsd netbsd dragonfly
|
|
|
|
package fsnotify
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const openMode = unix.O_NONBLOCK | unix.O_RDONLY | unix.O_CLOEXEC
|