Skip to content

Commit 9790927

Browse files
committed
build: add NetBSD and OpenBSD supports
1 parent a147af2 commit 9790927

38 files changed

+76
-72
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<br />
44
<a title="Build Status" target="_blank" href="https://github.com/panjf2000/gnet/actions?query=workflow%3ATests"><img src="https://img.shields.io/github/actions/workflow/status/panjf2000/gnet/test.yml?branch=dev&style=flat-square&logo=github-actions" /></a>
55
<a title="Codecov" target="_blank" href="https://codecov.io/gh/panjf2000/gnet"><img src="https://img.shields.io/codecov/c/github/panjf2000/gnet?style=flat-square&logo=codecov" /></a>
6-
<a title="Supported Platforms" target="_blank" href="https://github.com/panjf2000/gnet"><img src="https://img.shields.io/badge/platform-Linux%20%7C%20FreeBSD%20%7C%20DragonFly%20%7C%20Darwin%20%7C%20Windows-549688?style=flat-square&logo=launchpad" /></a>
6+
<a title="Supported Platforms" target="_blank" href="https://github.com/panjf2000/gnet"><img src="https://img.shields.io/badge/platform-Linux%20%7C%20FreeBSD%20%7C%20DragonFly%20%7C%20NetBSD%20%7C%20OpenBSD%20%7C%20Darwin%20%7C%20Windows-549688?style=flat-square&logo=launchpad" /></a>
77
<a title="Require Go Version" target="_blank" href="https://github.com/panjf2000/gnet"><img src="https://img.shields.io/badge/go-%3E%3D1.17-30dff3?style=flat-square&logo=go" /></a>
88
<br />
99
<a title="Chat Room" target="_blank" href="https://gitter.im/gnet-io/gnet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/gnet-io/gnet.svg" /></a>

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<br />
44
<a title="Build Status" target="_blank" href="https://github.com/panjf2000/gnet/actions?query=workflow%3ATests"><img src="https://img.shields.io/github/actions/workflow/status/panjf2000/gnet/test.yml?branch=dev&style=flat-square&logo=github-actions" /></a>
55
<a title="Codecov" target="_blank" href="https://codecov.io/gh/panjf2000/gnet"><img src="https://img.shields.io/codecov/c/github/panjf2000/gnet?style=flat-square&logo=codecov" /></a>
6-
<a title="Supported Platforms" target="_blank" href="https://github.com/panjf2000/gnet"><img src="https://img.shields.io/badge/platform-Linux%20%7C%20FreeBSD%20%7C%20DragonFly%20%7C%20Darwin%20%7C%20Windows-549688?style=flat-square&logo=launchpad" /></a>
6+
<a title="Supported Platforms" target="_blank" href="https://github.com/panjf2000/gnet"><img src="https://img.shields.io/badge/platform-Linux%20%7C%20FreeBSD%20%7C%20DragonFly%20%7C%20NetBSD%20%7C%20OpenBSD%20%7C%20Darwin%20%7C%20Windows-549688?style=flat-square&logo=launchpad" /></a>
77
<a title="Require Go Version" target="_blank" href="https://github.com/panjf2000/gnet"><img src="https://img.shields.io/badge/go-%3E%3D1.17-30dff3?style=flat-square&logo=go" /></a>
88
<br />
99
<a title="Chat Room" target="_blank" href="https://gitter.im/gnet-io/gnet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/gnet-io/gnet.svg" /></a>

acceptor_bsd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build freebsd || dragonfly || darwin
16-
// +build freebsd dragonfly darwin
15+
//go:build freebsd || dragonfly || netbsd || openbsd || darwin
16+
// +build freebsd dragonfly netbsd openbsd darwin
1717

1818
package gnet
1919

acceptor_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build linux || freebsd || dragonfly || darwin
16-
// +build linux freebsd dragonfly darwin
15+
//go:build linux || freebsd || dragonfly || netbsd || openbsd || darwin
16+
// +build linux freebsd dragonfly netbsd openbsd darwin
1717

1818
package gnet
1919

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build linux || freebsd || dragonfly || darwin || windows
2-
// +build linux freebsd dragonfly darwin windows
1+
//go:build linux || freebsd || dragonfly || netbsd || openbsd || darwin || windows
2+
// +build linux freebsd dragonfly netbsd openbsd darwin windows
33

44
package gnet
55

client_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build linux || freebsd || dragonfly || darwin
16-
// +build linux freebsd dragonfly darwin
15+
//go:build linux || freebsd || dragonfly || netbsd || openbsd || darwin
16+
// +build linux freebsd dragonfly netbsd openbsd darwin
1717

1818
package gnet
1919

conn_map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build (linux || freebsd || dragonfly || darwin) && !gc_opt
16-
// +build linux freebsd dragonfly darwin
15+
//go:build (linux || freebsd || dragonfly || netbsd || openbsd || darwin) && !gc_opt
16+
// +build linux freebsd dragonfly netbsd openbsd darwin
1717
// +build !gc_opt
1818

1919
package gnet

conn_matrix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build (linux || freebsd || dragonfly || darwin) && gc_opt
16-
// +build linux freebsd dragonfly darwin
15+
//go:build (linux || freebsd || dragonfly || netbsd || openbsd || darwin) && gc_opt
16+
// +build linux freebsd dragonfly netbsd openbsd darwin
1717
// +build gc_opt
1818

1919
package gnet

conn_matrix_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build (linux || freebsd || dragonfly || darwin) && gc_opt
2-
// +build linux freebsd dragonfly darwin
1+
//go:build (linux || freebsd || dragonfly || netbsd || openbsd || darwin) && gc_opt
2+
// +build linux freebsd dragonfly netbsd openbsd darwin
33
// +build gc_opt
44

55
package gnet

connection_bsd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build freebsd || dragonfly || darwin
16-
// +build freebsd dragonfly darwin
15+
//go:build freebsd || dragonfly || netbsd || openbsd || darwin
16+
// +build freebsd dragonfly netbsd openbsd darwin
1717

1818
package gnet
1919

0 commit comments

Comments
 (0)