From 44d253b6c0346319e88287cb14e7e0b2769ccdf9 Mon Sep 17 00:00:00 2001
From: "Jason T. Greene" <jason.greene@redhat.com>
Date: Wed, 11 May 2022 16:42:18 -0500
Subject: Add support for machine events on Windows

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
---
 cmd/podman/machine/machine_unix.go | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 cmd/podman/machine/machine_unix.go

(limited to 'cmd/podman/machine/machine_unix.go')

diff --git a/cmd/podman/machine/machine_unix.go b/cmd/podman/machine/machine_unix.go
new file mode 100644
index 000000000..213c24f8c
--- /dev/null
+++ b/cmd/podman/machine/machine_unix.go
@@ -0,0 +1,12 @@
+//go:build linux || ignore || aix || ignore || android || ignore || darwin || ignore || freebsd || ignore || hurd || ignore || illumos || ignore || ios || ignore || netbsd || ignore || openbsd || ignore || solaris
+// +build linux ignore aix ignore android ignore darwin ignore freebsd ignore hurd ignore illumos ignore ios ignore netbsd ignore openbsd ignore solaris
+
+package machine
+
+import (
+	"os"
+)
+
+func isUnixSocket(file os.DirEntry) bool {
+	return file.Type()&os.ModeSocket != 0
+}
-- 
cgit v1.2.3-54-g00ecf