From 45a5f79c24677517270083eb56a931192c7e1e7e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 15 Feb 2017 14:26:42 -0800 Subject: [PATCH] internal/poll: define PollDescriptor on plan9 Fixes #19114. Change-Id: I352add53d6ee8bf78792564225099f8537ac6b46 Reviewed-on: https://go-review.googlesource.com/37106 Run-TryBot: Ian Lance Taylor Reviewed-by: David du Colombier <0intro@gmail.com> --- src/internal/poll/fd_plan9.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internal/poll/fd_plan9.go b/src/internal/poll/fd_plan9.go index 1529bc6fde..5b2c674b36 100644 --- a/src/internal/poll/fd_plan9.go +++ b/src/internal/poll/fd_plan9.go @@ -178,3 +178,7 @@ func isHangup(err error) bool { func isInterrupted(err error) bool { return err != nil && stringsHasSuffix(err.Error(), "interrupted") } + +func PollDescriptor() uintptr { + return ^uintptr(0) +} -- 2.50.0