Build fix for go1.11rc1 (#6354)
Vendorized the following packages - "github.com/rjeczalik/notify" - "github.com/minio/highwayhash" Fixes #6315master
parent
52f6d5aafc
commit
01721a840a
@ -0,0 +1,14 @@ |
||||
// Copyright (c) 2018 The Notify Authors. All rights reserved.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// +build darwin,!kqueue,cgo,!go1.11
|
||||
|
||||
package notify |
||||
|
||||
/* |
||||
#include <CoreServices/CoreServices.h> |
||||
*/ |
||||
import "C" |
||||
|
||||
var refZero = (*C.struct___CFAllocator)(nil) |
@ -0,0 +1,9 @@ |
||||
// Copyright (c) 2018 The Notify Authors. All rights reserved.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// +build darwin,!kqueue,go1.11
|
||||
|
||||
package notify |
||||
|
||||
const refZero = 0 |
@ -0,0 +1,15 @@ |
||||
// Copyright (c) 2014-2018 The Notify Authors. All rights reserved.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// +build !darwin,!linux,!freebsd,!dragonfly,!netbsd,!openbsd,!windows
|
||||
// +build !kqueue,!solaris
|
||||
|
||||
package notify |
||||
|
||||
import "errors" |
||||
|
||||
// newWatcher stub.
|
||||
func newWatcher(chan<- EventInfo) watcher { |
||||
return watcherStub{errors.New("notify: not implemented")} |
||||
} |
@ -1,23 +1,13 @@ |
||||
// Copyright (c) 2014-2015 The Notify Authors. All rights reserved.
|
||||
// Copyright (c) 2014-2018 The Notify Authors. All rights reserved.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// +build !darwin,!linux,!freebsd,!dragonfly,!netbsd,!openbsd,!windows
|
||||
// +build !kqueue,!solaris
|
||||
|
||||
package notify |
||||
|
||||
import "errors" |
||||
|
||||
type stub struct{ error } |
||||
|
||||
// newWatcher stub.
|
||||
func newWatcher(chan<- EventInfo) watcher { |
||||
return stub{errors.New("notify: not implemented")} |
||||
} |
||||
type watcherStub struct{ error } |
||||
|
||||
// Following methods implement notify.watcher interface.
|
||||
func (s stub) Watch(string, Event) error { return s } |
||||
func (s stub) Rewatch(string, Event, Event) error { return s } |
||||
func (s stub) Unwatch(string) (err error) { return s } |
||||
func (s stub) Close() error { return s } |
||||
func (s watcherStub) Watch(string, Event) error { return s } |
||||
func (s watcherStub) Rewatch(string, Event, Event) error { return s } |
||||
func (s watcherStub) Unwatch(string) (err error) { return s } |
||||
func (s watcherStub) Close() error { return s } |
||||
|
Loading…
Reference in new issue