diff options
author | Sergey Fedorov <vital.had@gmail.com> | 2022-10-19 18:49:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 23:49:45 +1300 |
commit | 567725ed303b6738493c80efaf93dc4c1e65a9c9 (patch) | |
tree | 75f141047050eee63c05d613491595a7a9380afa /dln.c | |
parent | fc3137ef54562c3c3290245c0f62e0bb193c3145 (diff) |
Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975)
Notes
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -41,6 +41,10 @@ static void dln_loaderror(const char *format, ...); # include <strings.h> #endif +#if defined __APPLE__ +# include <AvailabilityMacros.h> +#endif + #ifndef xmalloc void *xmalloc(); void *xcalloc(); @@ -58,7 +62,7 @@ void *xrealloc(); #include <sys/stat.h> #ifndef S_ISDIR -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif #ifdef HAVE_SYS_PARAM_H |