diff options
-rw-r--r-- | src/bun.js/bindings/c-bindings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |