Skip to content

Commit

Permalink
Merge pull request #77 from Luap99/fix-mips-build
Browse files Browse the repository at this point in the history
Fix build for mips architecture
  • Loading branch information
rhatdan authored Dec 23, 2020
2 parents c97374b + 9da8e3e commit 5156ec8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/dev/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ func TTYs() (*[]TTY, error) {
}
s := fi.Sys().(*syscall.Stat_t)
t := TTY{
Minor: minDevNum(s.Rdev),
Major: majDevNum(s.Rdev),
// Rdev is type uint32 on mips arch so we have to cast to uint64
Minor: minDevNum(uint64(s.Rdev)),
Major: majDevNum(uint64(s.Rdev)),
Path: dev,
}
ttys = append(ttys, t)
Expand Down

0 comments on commit 5156ec8

Please sign in to comment.