Skip to content

Commit

Permalink
hygiene, include macho-o/dyld.h for _NSGetExecutablePath(), fixes #107
Browse files Browse the repository at this point in the history
  • Loading branch information
hroptatyr committed Mar 20, 2023
1 parent 35041f4 commit 014e2d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/clitosis.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
#endif /* HAVE_PTY_H */
/* check for me */
#include <wordexp.h>
#if defined __APPLE__ && defined __MACH__
# include <mach-o/dyld.h>
#endif /* __APPLE__ && __MACH__ */

#if !defined LIKELY
# define LIKELY(_x) __builtin_expect((_x), 1)
Expand Down

0 comments on commit 014e2d4

Please sign in to comment.