aboutsummaryrefslogtreecommitdiff
path: root/syscall_linux.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-30 16:56:34 -0500
committerBen Johnson <benbjohnson@yahoo.com>2014-01-30 16:56:34 -0500
commit7c2ec1a575d4273082974d2946ebdf41dde917b6 (patch)
tree745670dcb19f08dd87bb209593052468ea5464f9 /syscall_linux.go
parentREADME (diff)
downloaddedo-7c2ec1a575d4273082974d2946ebdf41dde917b6.tar.gz
dedo-7c2ec1a575d4273082974d2946ebdf41dde917b6.tar.xz
Fix Linux build.
Diffstat (limited to 'syscall_linux.go')
-rw-r--r--syscall_linux.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/syscall_linux.go b/syscall_linux.go
new file mode 100644
index 0000000..de34193
--- /dev/null
+++ b/syscall_linux.go
@@ -0,0 +1,16 @@
+package bolt
+
+import (
+ "syscall"
+)
+
+type _syscall interface {
+ Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
+}
+
+type syssyscall struct{}
+
+func (o *syssyscall) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
+ // err = (EACCES, EBADF, EINVAL, ENODEV, ENOMEM, ENXIO, EOVERFLOW)
+ return syscall.Mmap(fd, offset, length, prot, flags)
+}