mirror of
https://github.com/golang/go
synced 2024-11-24 11:10:03 -07:00
godoc: remove dependency of syscall
On app-engine, we cannot import syscall. The respective constants are already defined elsewhere for the same reason. R=r, dsymonds CC=golang-dev https://golang.org/cl/5036042
This commit is contained in:
parent
66e44000d4
commit
642d272c3c
@ -23,7 +23,6 @@ import (
|
||||
"runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
"syscall"
|
||||
"template"
|
||||
"time"
|
||||
)
|
||||
@ -826,9 +825,9 @@ func fsReadDir(dir string) ([]*os.FileInfo, os.Error) {
|
||||
// Convert []FileInfo to []*os.FileInfo.
|
||||
osfi := make([]*os.FileInfo, len(fi))
|
||||
for i, f := range fi {
|
||||
mode := uint32(syscall.S_IFREG)
|
||||
mode := uint32(S_IFREG)
|
||||
if f.IsDirectory() {
|
||||
mode = syscall.S_IFDIR
|
||||
mode = S_IFDIR
|
||||
}
|
||||
osfi[i] = &os.FileInfo{Name: f.Name(), Size: f.Size(), Mtime_ns: f.Mtime_ns(), Mode: mode}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user