Skip to content

Commit

Permalink
Fix build on WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalab authored and edsrzf committed Oct 9, 2024
1 parent 8e5d0fe commit d20d143
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions mmap_wasm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2024 Evan Shaw. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package mmap

import "syscall"

func mmap(len int, inprot, inflags, fd uintptr, off int64) ([]byte, error) {
return nil, syscall.ENOTSUP
}

func (m MMap) flush() error {
return syscall.ENOTSUP
}

func (m MMap) lock() error {
return syscall.ENOTSUP
}

func (m MMap) unlock() error {
return syscall.ENOTSUP
}

func (m MMap) unmap() error {
return syscall.ENOTSUP
}

0 comments on commit d20d143

Please sign in to comment.