From 8e4ee0bc8cfffe5b7ea824533f3931804e0fd511 Mon Sep 17 00:00:00 2001 From: chigotc Date: Mon, 15 Apr 2019 17:05:47 +0200 Subject: [PATCH] AIX support 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. --- README.md | 2 +- term.go | 2 +- term_solaris.go => term_nosyscall6.go | 2 +- utils_unix.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename term_solaris.go => term_nosyscall6.go (97%) diff --git a/README.md b/README.md index fab974b..4b0a5ff 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

-A powerful readline library in `Linux` `macOS` `Windows` `Solaris` +A powerful readline library in `Linux` `macOS` `Windows` `Solaris` `AIX` ## Guide diff --git a/term.go b/term.go index 133993c..b7520fb 100644 --- a/term.go +++ b/term.go @@ -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. diff --git a/term_solaris.go b/term_nosyscall6.go similarity index 97% rename from term_solaris.go rename to term_nosyscall6.go index 4c27273..1e12878 100644 --- a/term_solaris.go +++ b/term_nosyscall6.go @@ -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 diff --git a/utils_unix.go b/utils_unix.go index f88dac9..d1caecb 100644 --- a/utils_unix.go +++ b/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