Skip to content

Using unix.EOPNOTSUPP will fail when build on windows. #39

@rustatian

Description

@rustatian

Hey @buger , the last PR #38 brought the change which prevented built for the Windows OS.

if errors.Is(err, unix.EOPNOTSUPP) {
	return math.MaxInt
}

I suppose, that there are should be built tags, for Linux and separate terminal_windows.go w/o Operation not supported on transport endpoint (EOPNOTSUPP) constant.
Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions