Skip to content

Commit

Permalink
Merge pull request cppfastio#1024 from aleck099/next
Browse files Browse the repository at this point in the history
Try to fix linkage error for darwin. Symbol: __exit
  • Loading branch information
trcrsired authored Dec 9, 2024
2 parents b1c1f44 + a0afcfe commit 4b51e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fast_io_hosted/process/process/posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern pid_t libc_fork() noexcept __asm__("_fork");
extern pid_t libc_vfork() noexcept __asm__("_vfork");
extern pid_t libc_waitpid(pid_t pid, int *status, int options) noexcept __asm__("_waitpid");
[[noreturn]] extern void libc_exit(int status) noexcept __asm__("__Exit");
[[noreturn]] extern void libc_exit2(int status) noexcept __asm__("__Exit"); // TODO: fix linkage error on darwin
[[noreturn]] extern void libc_exit2(int status) noexcept __asm__("__exit");
#else
// extern int libc_faccessat(int dirfd, char const *pathname, int mode, int flags) noexcept __asm__("faccessat");
extern int libc_fexecve(int fd, char *const *argv, char *const *envp) noexcept __asm__("fexecve");
Expand Down

0 comments on commit 4b51e1a

Please sign in to comment.