Skip to content

Commit

Permalink
pmci: add netbsd support
Browse files Browse the repository at this point in the history
  • Loading branch information
billziss-gh committed Jun 30, 2018
1 parent c4f1f27 commit dd0c76f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .pmci/netbsd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -ex

# cgofuse: build and test
export GOPATH=/tmp/go
mkdir -p /tmp/go/src/github.com/billziss-gh
cp -R /tmp/repo/cgofuse /tmp/go/src/github.com/billziss-gh
cd /tmp/go/src/github.com/billziss-gh/cgofuse
go build -v ./...
# go test -v ./fuse -run 'TestUnmount|TestSignal'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Cgofuse is a cross-platform FUSE library for Go. It is supported on multiple platforms and can be ported to any platform that has a FUSE implementation. It has [cgo](https://golang.org/cmd/cgo/) and [!cgo](https://github.com/golang/go/wiki/WindowsDLLs) ("nocgo") variants depending on the platform.

| |macOS<br/>[![Travis CI](https://img.shields.io/travis/billziss-gh/cgofuse.svg)](https://travis-ci.org/billziss-gh/cgofuse)|FreeBSD<br/>[![PMCI](https://storage.googleapis.com/pmci-logs/github.com/billziss-gh/cgofuse/freebsd/badge.svg)](https://storage.googleapis.com/pmci-logs/github.com/billziss-gh/cgofuse/freebsd/build.html)|NetBSD<br/>![no CI](https://img.shields.io/badge/build-none-lightgrey.svg)|OpenBSD<br/>![no CI](https://img.shields.io/badge/build-none-lightgrey.svg)|Linux<br/>[![Travis CI](https://img.shields.io/travis/billziss-gh/cgofuse.svg)](https://travis-ci.org/billziss-gh/cgofuse)|Windows<br/>[![AppVeyor](https://img.shields.io/appveyor/ci/billziss-gh/cgofuse.svg)](https://ci.appveyor.com/project/billziss-gh/cgofuse)|
| |macOS<br/>[![Travis CI](https://img.shields.io/travis/billziss-gh/cgofuse.svg)](https://travis-ci.org/billziss-gh/cgofuse)|FreeBSD<br/>[![PMCI](https://storage.googleapis.com/pmci-logs/github.com/billziss-gh/cgofuse/freebsd/badge.svg)](https://storage.googleapis.com/pmci-logs/github.com/billziss-gh/cgofuse/freebsd/build.html)|NetBSD<br/>[![PMCI](https://storage.googleapis.com/pmci-logs/github.com/billziss-gh/cgofuse/netbsd/badge.svg)](https://storage.googleapis.com/pmci-logs/github.com/billziss-gh/cgofuse/netbsd/build.html)|OpenBSD<br/>![no CI](https://img.shields.io/badge/build-none-lightgrey.svg)|Linux<br/>[![Travis CI](https://img.shields.io/travis/billziss-gh/cgofuse.svg)](https://travis-ci.org/billziss-gh/cgofuse)|Windows<br/>[![AppVeyor](https://img.shields.io/appveyor/ci/billziss-gh/cgofuse.svg)](https://ci.appveyor.com/project/billziss-gh/cgofuse)|
|:-----:|:----------------:|:----------------:|:----------------:|:----------------:|:----------------:|:----------------:|
| cgo |:heavy_check_mark:|:heavy_check_mark:<sup>1</sup>|:heavy_check_mark:<sup>2</sup>|:heavy_check_mark:<sup>2</sup>|:heavy_check_mark:|:heavy_check_mark:|
| !cgo | | | | | |:heavy_check_mark:<sup>1</sup>|
Expand Down
2 changes: 1 addition & 1 deletion fuse/host_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package fuse
#cgo freebsd CFLAGS: -DFUSE_USE_VERSION=28 -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse
#cgo freebsd LDFLAGS: -L/usr/local/lib -lfuse
#cgo netbsd CFLAGS: -DFUSE_USE_VERSION=28 -D_FILE_OFFSET_BITS=64
#cgo netbsd CFLAGS: -DFUSE_USE_VERSION=28 -D_FILE_OFFSET_BITS=64 -D_KERNTYPES
#cgo netbsd LDFLAGS: -lrefuse
#cgo openbsd CFLAGS: -DFUSE_USE_VERSION=28 -D_FILE_OFFSET_BITS=64
Expand Down

0 comments on commit dd0c76f

Please sign in to comment.