diff options
author | 2023-01-16 20:33:31 -0800 | |
---|---|---|
committer | 2023-01-16 20:33:31 -0800 | |
commit | a1b581621cf3deaf40c51d7c1b3230a9c01cde1c (patch) | |
tree | 780409fe8e5cee2590fc90b57a417bfd127a330d | |
parent | 274ae5de1be9fa2cb460f8b923c8a168523d9314 (diff) | |
download | bun-a1b581621cf3deaf40c51d7c1b3230a9c01cde1c.tar.gz bun-a1b581621cf3deaf40c51d7c1b3230a9c01cde1c.tar.zst bun-a1b581621cf3deaf40c51d7c1b3230a9c01cde1c.zip |
guess we'll check if it's defined
-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) |