From 19b92fa5b144faef2e2561bf2fe530f634db251d Mon Sep 17 00:00:00 2001 From: NielsAD Date: Sun, 21 Feb 2021 15:59:15 +0100 Subject: [PATCH] Fix macOS compilation, resolves #1 --- walk/{getdents_windows.go => getdents_stdlib.go} | 2 ++ walk/getdents_unix.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename walk/{getdents_windows.go => getdents_stdlib.go} (92%) diff --git a/walk/getdents_windows.go b/walk/getdents_stdlib.go similarity index 92% rename from walk/getdents_windows.go rename to walk/getdents_stdlib.go index f4b4e7e..ddcefdf 100644 --- a/walk/getdents_windows.go +++ b/walk/getdents_stdlib.go @@ -2,6 +2,8 @@ // Project: autoindex (https://github.com/nielsAD/autoindex) // License: Mozilla Public License, v2.0 +// +build !freebsd,!linux,!netbsd,!openbsd + package walk import ( diff --git a/walk/getdents_unix.go b/walk/getdents_unix.go index 6229f4d..1075fbb 100644 --- a/walk/getdents_unix.go +++ b/walk/getdents_unix.go @@ -2,7 +2,7 @@ // Project: autoindex (https://github.com/nielsAD/autoindex) // License: Mozilla Public License, v2.0 -// +build darwin freebsd linux netbsd openbsd +// +build freebsd linux netbsd openbsd package walk