From a1b581621cf3deaf40c51d7c1b3230a9c01cde1c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 16 Jan 2023 20:33:31 -0800 Subject: guess we'll check if it's defined --- src/bun.js/bindings/c-bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bun.js/bindings/c-bindings.cpp') diff --git a/src/bun.js/bindings/c-bindings.cpp b/src/bun.js/bindings/c-bindings.cpp index 7233aab99..90cb5e310 100644 --- a/src/bun.js/bindings/c-bindings.cpp +++ b/src/bun.js/bindings/c-bindings.cpp @@ -18,7 +18,7 @@ extern "C" int32_t set_process_priority(uint32_t pid, int32_t priority) extern "C" bool is_executable_file(const char* path) { -#ifdef __APPLE__ +#if defined(O_EXEC) // O_EXEC is macOS specific int fd = open(path, O_EXEC | O_CLOEXEC, 0); if (fd < 0) -- cgit v1.2.3