From 567725ed303b6738493c80efaf93dc4c1e65a9c9 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 19 Oct 2022 18:49:45 +0800 Subject: Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975) --- dln.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dln.c') diff --git a/dln.c b/dln.c index bf87251bb6..0edd709bbe 100644 --- a/dln.c +++ b/dln.c @@ -41,6 +41,10 @@ static void dln_loaderror(const char *format, ...); # include #endif +#if defined __APPLE__ +# include +#endif + #ifndef xmalloc void *xmalloc(); void *xcalloc(); @@ -58,7 +62,7 @@ void *xrealloc(); #include #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 -- cgit v1.2.1