Skip to content

Commit

Permalink
Added support for building on FreeBSD and NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 10, 2015
1 parent a6363c6 commit c7edca5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions syscall_freebsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// +build freebsd

package main

import "os"
import "syscall"

func atime(info os.FileInfo) syscall.Timespec {
return sysStat(info).Atimespec
}
10 changes: 10 additions & 0 deletions syscall_netbsd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// +build netbsd

package main

import "os"
import "syscall"

func atime(info os.FileInfo) syscall.Timespec {
return sysStat(info).Atimespec
}

0 comments on commit c7edca5

Please sign in to comment.