Skip to content

Commit

Permalink
Fallback to kqueue on darwin without cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
tie committed Aug 15, 2019
1 parent 629144b commit 9a8f8ad
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion event_fsevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,!kqueue
// +build darwin,!kqueue,cgo

package notify

Expand Down
2 changes: 1 addition & 1 deletion event_kqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,kqueue dragonfly freebsd netbsd openbsd
// +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd

package notify

Expand Down
2 changes: 1 addition & 1 deletion event_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,kqueue dragonfly freebsd netbsd openbsd solaris
// +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris

package notify

Expand Down
2 changes: 1 addition & 1 deletion example_fsevents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,!kqueue
// +build darwin,!kqueue,cgo

package notify_test

Expand Down
2 changes: 1 addition & 1 deletion watcher_fsevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,!kqueue
// +build darwin,!kqueue,cgo

package notify

Expand Down
2 changes: 1 addition & 1 deletion watcher_fsevents_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,!kqueue
// +build darwin,!kqueue,cgo

package notify

Expand Down
2 changes: 1 addition & 1 deletion watcher_fsevents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,!kqueue
// +build darwin,!kqueue,cgo

package notify

Expand Down
2 changes: 1 addition & 1 deletion watcher_kqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,kqueue dragonfly freebsd netbsd openbsd
// +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd

package notify

Expand Down
2 changes: 1 addition & 1 deletion watcher_kqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,kqueue dragonfly freebsd netbsd openbsd
// +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd

package notify

Expand Down
2 changes: 1 addition & 1 deletion watcher_recursive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,!kqueue windows
// +build darwin,!kqueue,cgo windows

package notify

Expand Down
2 changes: 1 addition & 1 deletion watcher_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,kqueue dragonfly freebsd netbsd openbsd solaris
// +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris

// watcher_trigger is used for FEN and kqueue which behave similarly:
// only files and dirs can be watched directly, but not files inside dirs.
Expand Down
2 changes: 1 addition & 1 deletion watcher_trigger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.

// +build darwin,kqueue dragonfly freebsd netbsd openbsd solaris
// +build darwin,kqueue darwin,!cgo dragonfly freebsd netbsd openbsd solaris

package notify

Expand Down

0 comments on commit 9a8f8ad

Please sign in to comment.