From 32bbc76949c7baac0b655e1282d18e6835ad5b0c Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 30 Jan 2014 22:41:10 +0000 Subject: [PATCH] Remove all darwin specific files and use more generic _unsupported with build tags. Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes (github: creack) --- mount/{flags_darwin.go => flags_unsupported.go} | 1 + mount/{mounter_darwin.go => mounter_unsupported.go} | 1 + netlink/{netlink_darwin.go => netlink_unsupported.go} | 1 + 3 files changed, 3 insertions(+) rename mount/{flags_darwin.go => flags_unsupported.go} (78%) rename mount/{mounter_darwin.go => mounter_unsupported.go} (88%) rename netlink/{netlink_darwin.go => netlink_unsupported.go} (96%) diff --git a/mount/flags_darwin.go b/mount/flags_unsupported.go similarity index 78% rename from mount/flags_darwin.go rename to mount/flags_unsupported.go index e89d5e7..d0b59a6 100644 --- a/mount/flags_darwin.go +++ b/mount/flags_unsupported.go @@ -1,3 +1,4 @@ +// +build: !linux !amd64 package mount func parseOptions(options string) (int, string) { diff --git a/mount/mounter_darwin.go b/mount/mounter_unsupported.go similarity index 88% rename from mount/mounter_darwin.go rename to mount/mounter_unsupported.go index 7615f94..1dd7458 100644 --- a/mount/mounter_darwin.go +++ b/mount/mounter_unsupported.go @@ -1,3 +1,4 @@ +// +build: !linux !amd64 package mount func mount(device, target, mType string, flag uintptr, data string) error { diff --git a/netlink/netlink_darwin.go b/netlink/netlink_unsupported.go similarity index 96% rename from netlink/netlink_darwin.go rename to netlink/netlink_unsupported.go index 298508a..3fa0c1e 100644 --- a/netlink/netlink_darwin.go +++ b/netlink/netlink_unsupported.go @@ -1,3 +1,4 @@ +// +build: !linux !amd64 package netlink import (