Add solaris build support

Signed-off-by: Edward Pilatowicz <edward.pilatowicz@oracle.com>
This commit is contained in:
Edward Pilatowicz
2017-06-28 10:50:04 -07:00
parent 534a137ed3
commit 56c1f5c184
21 changed files with 225 additions and 32 deletions

19
sys/stat_unix.go Normal file
View File

@@ -0,0 +1,19 @@
// +build linux solaris
package sys
import (
"syscall"
)
func StatAtime(st *syscall.Stat_t) syscall.Timespec {
return st.Atim
}
func StatCtime(st *syscall.Stat_t) syscall.Timespec {
return st.Ctim
}
func StatMtime(st *syscall.Stat_t) syscall.Timespec {
return st.Mtim
}