From 8cdba50ea1e124270a1341366aa83e73ad408bc9 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 18 Sep 2014 13:22:57 -0500 Subject: [PATCH] Rework build to support more liberal unix variants. Rather than having the build setup such that it will only work on the specifically defined operating systems, this commit modifies it to use more liberal !windows,!plan9 build tag for the unix specific bits. This means bolt will compile on more Operating Systems such as OpenBSD, FreeBSD, and NetBSD. See boltdb/bolt#257 for discussion. --- bolt_unix.go | 2 +- bolt_darwin.go => boltsync_unix.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) rename bolt_darwin.go => boltsync_unix.go (82%) diff --git a/bolt_unix.go b/bolt_unix.go index f7d2fe5..95647a7 100644 --- a/bolt_unix.go +++ b/bolt_unix.go @@ -1,4 +1,4 @@ -// +build linux darwin +// +build !windows,!plan9 package bolt diff --git a/bolt_darwin.go b/boltsync_unix.go similarity index 82% rename from bolt_darwin.go rename to boltsync_unix.go index 6528f72..3c54dd5 100644 --- a/bolt_darwin.go +++ b/boltsync_unix.go @@ -1,3 +1,5 @@ +// +build !windows,!plan9,!linux + package bolt import (