Skip to content

Commit

Permalink
AIX support (#175)
Browse files Browse the repository at this point in the history
This commit adds support for AIX operating system.

 - move term_solaris.go to term_nosyscall6.go. AIX like solaris doesn't
provide syscall.Syscall6 and must rely on x/sys/unix in order to perform
syscalls.

 - This patch won't work with versions prior to 1.13 because it needs
some constants added by https://go-review.googlesource.com/c/go/+/171339.
  • Loading branch information
Helflym committed Apr 17, 2022
1 parent a11d8f2 commit a5e9f81
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@
<img src="https://raw.githubusercontent.com/chzyer/readline/assets/logo_f.png" />
</p>

A powerful readline library in `Linux` `macOS` `Windows` `Solaris`
A powerful readline library in `Linux` `macOS` `Windows` `Solaris` `AIX`

## Guide

Expand Down
2 changes: 1 addition & 1 deletion term.go
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build darwin dragonfly freebsd linux,!appengine netbsd openbsd solaris
// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd solaris

// Package terminal provides support functions for dealing with terminals, as
// commonly found on UNIX systems.
Expand Down
2 changes: 1 addition & 1 deletion term_solaris.go → term_nosyscall6.go
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build solaris
// +build aix solaris

package readline

Expand Down
2 changes: 1 addition & 1 deletion utils_unix.go
@@ -1,4 +1,4 @@
// +build darwin dragonfly freebsd linux,!appengine netbsd openbsd solaris
// +build aix darwin dragonfly freebsd linux,!appengine netbsd openbsd solaris

package readline

Expand Down

0 comments on commit a5e9f81

Please sign in to comment.