shiny/driver/x11driver: add support for DragonflyBSD
DragonflyBSD supports all the functionality needed, but was excluded
by build tags.
Change-Id: If7fb237ad0b652686f8e32d11fc1f721b455bb91
Reviewed-on: https://go-review.googlesource.com/36475
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/shiny/driver/driver_fallback.go b/shiny/driver/driver_fallback.go
index 6b1bbff..08eb4ee 100644
--- a/shiny/driver/driver_fallback.go
+++ b/shiny/driver/driver_fallback.go
@@ -5,6 +5,7 @@
// +build !darwin
// +build !linux android
// +build !windows
+// +build !dragonfly
package driver
diff --git a/shiny/driver/driver_x11.go b/shiny/driver/driver_x11.go
index 98ea8e5..0baac91 100644
--- a/shiny/driver/driver_x11.go
+++ b/shiny/driver/driver_x11.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build linux,!android
+// +build linux,!android dragonfly
package driver
diff --git a/shiny/driver/x11driver/shm_other.go b/shiny/driver/x11driver/shm_other.go
index ee0a92c..1ca085e 100644
--- a/shiny/driver/x11driver/shm_other.go
+++ b/shiny/driver/x11driver/shm_other.go
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// +build !linux
+// +build !dragonfly
package x11driver
diff --git a/shiny/driver/x11driver/shm_linux_syscall.go b/shiny/driver/x11driver/shm_shmopen_syscall.go
similarity index 97%
rename from shiny/driver/x11driver/shm_linux_syscall.go
rename to shiny/driver/x11driver/shm_shmopen_syscall.go
index 3cbf80c..23f9026 100644
--- a/shiny/driver/x11driver/shm_linux_syscall.go
+++ b/shiny/driver/x11driver/shm_shmopen_syscall.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build linux
+// +build linux dragonfly
// +build amd64 arm arm64 mips64 mips64le
package x11driver