summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-06-07 03:56:13 +0200
committerJakob Borg <jakob@nym.se>2014-06-07 03:56:13 +0200
commit5a2328d9a5f6aca1ff3609c61788d7357d81df83 (patch)
treefcc514915f3e16db9e95961704a6ee9ff16f73dd /cmd
parentb2f66cfb605d41e6a2d0895d4dcb3c716b5df351 (diff)
Build for Solaris
Diffstat (limited to 'cmd')
-rw-r--r--cmd/syncthing/upgrade.go2
-rw-r--r--cmd/syncthing/upgrade_solaris.go7
2 files changed, 9 insertions, 0 deletions
diff --git a/cmd/syncthing/upgrade.go b/cmd/syncthing/upgrade.go
index 2ac2843b57..6b09f85331 100644
--- a/cmd/syncthing/upgrade.go
+++ b/cmd/syncthing/upgrade.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
+// +build !solaris
+
package main
import (
diff --git a/cmd/syncthing/upgrade_solaris.go b/cmd/syncthing/upgrade_solaris.go
new file mode 100644
index 0000000000..0df2d0e2f6
--- /dev/null
+++ b/cmd/syncthing/upgrade_solaris.go
@@ -0,0 +1,7 @@
+package main
+
+import "errors"
+
+func upgrade() error {
+ return errors.New("Upgrade currently unsupported on Solaris")
+}